AutomatedFanfic/root/etc/cont-init.d/05-default-confs
MrTyton 9833f81007 Update to properly utilize docker
Trying this, time to see if it works.
2022-03-25 17:21:17 -04:00

25 lines
613 B
Plaintext

#!/usr/bin/with-contenv sh
if ! [ -f "/config/config.ini" ]
then
echo "[default-confs] restoring default 'config.ini'."
cp /config.default/config.ini /config/
fi
if ! [ -f "/config/defaults.ini" ]
then
echo "[default-confs] restoring default 'defaults.ini'."
cp /config.default/defaults.ini /config/
fi
if ! [ -f "/config/personal.ini" ]
then
echo "[default-confs] restoring default 'personal.ini'."
cp /config.default/personal.ini /config/
fi
if ! [ -f "/config/fanfiction_file" ]
then
echo "[default-confs] restoring default 'fanfiction_file'."
cp /config.default/fanfiction_file /config/
fi