From bb254474d09a06fcba1f13c64106367b016e754d Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 30 Oct 2025 10:23:46 -0700 Subject: [PATCH] fix config.ini ownership issues my fault for not having this done a long time ago --- install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 37a828e..9c0dc1d 100755 --- a/install.sh +++ b/install.sh @@ -285,15 +285,6 @@ sudo usermod -a -G tty "$whoami" sudo usermod -a -G bluetooth "$whoami" echo "Added user $whoami to dialout, tty, and bluetooth groups" -sudo chown -R "$whoami:$whoami" "$program_path/logs" -sudo chown -R "$whoami:$whoami" "$program_path/data" -sudo chown "$whoami:$whoami" "$program_path/config.ini" -sudo chmod 640 "$program_path/config.ini" -echo "Permissions set for meshbot on config.ini" -sudo chmod 750 "$program_path/logs" -sudo chmod 750 "$program_path/data" -echo "Permissions set for meshbot on logs and data directories" - # check and see if some sort of NTP is running if ! systemctl is-active --quiet ntp.service && \ ! systemctl is-active --quiet systemd-timesyncd.service && \ @@ -468,6 +459,15 @@ else printf "*** Stay Up to date using 'bash update.sh' ***\n" >> install_notes.txt fi +sudo chown -R "$whoami:$whoami" "$program_path/logs" +sudo chown -R "$whoami:$whoami" "$program_path/data" +sudo chown "$whoami:$whoami" "$program_path/config.ini" +sudo chmod 640 "$program_path/config.ini" +echo "Permissions set for meshbot on config.ini" +sudo chmod 750 "$program_path/logs" +sudo chmod 750 "$program_path/data" +echo "Permissions set for meshbot on logs and data directories" + printf "\nInstallation complete?\n" exit 0