diff --git a/installer3.sh b/installer3.sh index f5a47c9..2941c2a 100644 --- a/installer3.sh +++ b/installer3.sh @@ -8,11 +8,8 @@ fi # handle users serial shit ## self -echo "Giving your user the right permissions" -sudo usermod -aG tty $username -sudo usermod -aG root $username +echo "Giving $username the right permissions" sudo usermod -aG dialout $username -sudo usermod -aG plugdev $username ## service users echo "Giving service users the right permissions" sudo usermod -aG dialout gpsd diff --git a/reconfig_full.sh b/reconfig_full.sh index aae082a..915403e 100644 --- a/reconfig_full.sh +++ b/reconfig_full.sh @@ -35,6 +35,8 @@ sudo bash -c "cat $chrony_new > $chrony" sudo bash -c "cat $grafana_new > $grafana" sudo bash -c "cat $influxdb_new > $influxdb" sudo bash -c "cat $telegraf_new > $telegraf" + +sudo touch $udev_rule # workaround because weird error sudo bash -c "cat $udev_new > $udev_rule" # restart da services