From 60f68ff2a33f8ea50e2e192d3314eaabe9819957 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 15 Sep 2025 17:51:20 -0400 Subject: [PATCH] add permission handling of the day to first time install script --- first_time_install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/first_time_install.sh b/first_time_install.sh index 19eb26b5..3bea92c6 100644 --- a/first_time_install.sh +++ b/first_time_install.sh @@ -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 ""