Compare commits

..

No commits in common. "44dbbdd3964294b55997381f675be44b07f69cbe" and "f2a90445c06f4afd1f27eb7bf610a38803f776c4" have entirely different histories.

2 changed files with 7 additions and 7 deletions

View File

@ -43,26 +43,24 @@ fi
if [ -d /config/init ]; then if [ -d /config/init ]; then
if [ "$(ls -A /config/init)" ]; then if [ "$(ls -A /config/init)" ]; then
echo "Running additional startup scripts." echo "Running additional startup scripts."
for f in /config/init/*.sh; do bash /config/init/*
bash "$f"
done
else else
echo "/config/init is empty - no additional startup scripts detected." echo "/config/init is empty - no additional startup scripts detected."
fi fi
else else
echo "Directory /config/init not found. Creating." echo "Directory /config/init not found. Creating."
mkdir /config/init && chown -R cronicle:cronicle /config/init mkdir /config/init
fi fi
echo "Checking permissions in /config and /app." echo "Checking permissions in /config and /app."
if [ -n "$(find /app \! -user ${PUID})" ] || [ -n "$(find /app \! -group ${PGID})" ] if [ ! "$(stat -c %u /app)" -eq "${PUID}" ] || [ ! "$(stat -c %g /app)" -eq "${PGID}" ]
then then
echo "Fixing permissions for /app (this can take some time)." echo "Fixing permissions for /app (this can take some time)."
chown -R cronicle:cronicle /app chown -R cronicle:cronicle /app
fi fi
if [ -n "$(find /config \! -user ${PUID})" ] || [ -n "$(find /config \! -group ${PGID})" ] if [ ! "$(stat -c %u /config)" -eq "${PUID}" ] || [ ! "$(stat -c %g /config)" -eq "${PGID}" ]
then then
echo "Fixing permissions for /config (this can take some time)." echo "Fixing permissions for /config (this can take some time)."
chown -R cronicle:cronicle /config chown -R cronicle:cronicle /config

View File

@ -80,8 +80,10 @@ then
then then
echo "No config found. Copy config.json from the manager server and place it in /config/cronicle/conf dir." echo "No config found. Copy config.json from the manager server and place it in /config/cronicle/conf dir."
cp -R /app/cronicle/conf /config/cronicle/conf cp -r /app/cronicle/conf /config/cronicle/conf
rm -rf /config/cronicle/conf/config.json rm -rf /config/cronicle/conf/config.json
rm -rf /app/cronicle/conf
ln -s /config/cronicle/conf /app/cronicle/conf
echo '' echo ''
echo '' echo ''
echo '*************************************' echo '*************************************'