mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-25 18:12:41 +00:00
22 lines
No EOL
644 B
Bash
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 |