improve .env handling
This commit is contained in:
@@ -72,6 +72,14 @@ for svc in nextcloud gitea monitoring; do
|
||||
fi
|
||||
done
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Lock down .env files (readable only by root)
|
||||
# ------------------------------------------------------------------
|
||||
echo "==> Securing .env files..."
|
||||
for envfile in "$REPO_ROOT"/.env "$REPO_ROOT"/*/.env; do
|
||||
[ -f "$envfile" ] && chmod 600 "$envfile" && chown root:root "$envfile"
|
||||
done
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Start all stacks
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user