mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-26 10:32:41 +00:00
22 lines
644 B
Text
22 lines
644 B
Text
|
#!/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
|