add permission handling of the day to first time install script

This commit is contained in:
Chuck
2025-09-15 17:51:20 -04:00
parent c7634cbf3a
commit 60f68ff2a3

View File

@@ -559,6 +559,13 @@ if [ -f "$PROJECT_ROOT_DIR/config/config_secrets.json" ]; then
echo "✓ Secrets file permissions set"
fi
# Set proper permissions for YTM auth file (readable by all users including root service)
if [ -f "$PROJECT_ROOT_DIR/config/ytm_auth.json" ]; then
chown "$ACTUAL_USER:$ACTUAL_USER" "$PROJECT_ROOT_DIR/config/ytm_auth.json" || true
chmod 644 "$PROJECT_ROOT_DIR/config/ytm_auth.json"
echo "✓ YTM auth file permissions set"
fi
echo "✓ File ownership configured"
echo ""