#!/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