This commit is contained in:
12
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
Normal file
12
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "Start: init-vnstat-config run script"
|
||||
|
||||
mkdir -p /config /app/www
|
||||
|
||||
if [ ! -f /etc/periodic/15min/stats ]; then
|
||||
echo "Copy default-config..."
|
||||
cp /defaults/stats /etc/periodic/15min/stats
|
||||
fi
|
||||
|
||||
echo "Finish: init-vnstat-config"
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/trype
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/trype
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
|
||||
Reference in New Issue
Block a user