1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-25 18:12:41 +00:00
Arsse/dist/docker/etc/service/init-config/run
2024-07-05 09:50:36 -05:00

22 lines
No EOL
644 B
Bash

#!/usr/bin/env bash
while ! grep -qF "init-user: done"; do
sleep 1
done
logger -t 'init-config' "start" >> /var/log/run-log
if [ ! -d "/config/arsse" ] || [ ! "$(ls -A "/config/arsse")" ]; then
echo -n "[init-config] Copying defaults to /config/arsse..."
cp -R /default/arsse/. /config/arsse
chown -R ook:ook /config/arsse
echo " done"
fi
if [ ! -d "/config/nginx" ] || [ ! "$(ls -A "/config/nginx")" ]; then
echo -n "[init-config] Copying defaults to /config/nginx..."
cp -R /default/nginx/. /config/nginx
chown -R ook:ook /config/nginx
echo " done"
fi
logger -t 'init-config' "done" >> /var/log/run-log