NEW: add NadekoBot__creds env to specify alternative creds.yml

This commit is contained in:
Veovis
2022-07-27 05:00:27 +00:00
committed by Kwoth
parent f761714f15
commit cc6128997e
5 changed files with 39 additions and 20 deletions

View File

@@ -13,7 +13,15 @@ do
fi
done
# fix folder permissions
# creds.yml migration
if [ -f /app/creds.yml ]; then
echo "Default location for creds.yml is now /app/data/creds.yml."
echo "Please move your creds.yml and update your docker-compose.yml accordingly."
export Nadeko_creds=/app/creds.yml
fi
# ensure nadeko can write on /app/data
chown -R nadeko:nadeko "$data"
# drop to regular user and launch command