1748956374

This commit is contained in:
2025-06-03 07:12:53 -06:00
parent 9fabc93055
commit b9a7433b7c
6 changed files with 33 additions and 35 deletions
+11 -10
View File
@@ -8,25 +8,26 @@ fi
# handle users serial shit
## self
echo "Giving $username the right permissions"
echo "Giving $username the right permissions..."
sudo usermod -aG dialout $username
## service users
echo "Giving service users the right permissions"
echo "Giving service users the right permissions..."
sudo usermod -aG dialout gpsd
sudo usermod -aG dialout _chrony
# reconfigure to normal mode
echo "Starting configure script"
echo "Starting configure script..."
bash ./reconfig_full.sh ./working-normal-level-conf
# enable services
echo "Enabling Services"
sudo systemctl enable gpsd
sudo systemctl enable chrony
sudo systemctl enable influxdb
sudo systemctl enable telegraf
sudo systemctl enable grafana-server
sudo systemctl enable syslog-ng
echo "Enabling Services..."
sudo systemctl enable gpsd 1>/dev/null
sudo systemctl enable chrony 1>/dev/null
sudo systemctl enable influxdb 1>/dev/null
sudo systemctl enable grafana-server 1>/dev/null
sudo systemctl enable telegraf 1>/dev/null
sudo systemctl enable grafana-server 1>/dev/null
sudo systemctl enable syslog-ng 1>/dev/null
# reboot rq
echo "Rebooting now!"