diff --git a/README.md b/README.md index ddd79b4..185c745 100755 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ ALL ALL=(ALL) NOPASSWD: /usr/bin/nmcli, /usr/sbin/reboot www-data ALL=(ALL) NOPASSWD: /usr/bin/git pull www-data ALL=(ALL) NOPASSWD: /usr/bin/ssh www-data ALL=(ALL) NOPASSWD: /usr/bin/python3 * +www-data ALL=(ALL) NOPASSWD: /bin/systemctl * ``` ## Serial diff --git a/html/admin.html b/html/admin.html index 253659d..cd47515 100755 --- a/html/admin.html +++ b/html/admin.html @@ -180,33 +180,36 @@
-
-

SystemD Services

-
-
-
- - - - - - - - - - - - - - -
ServiceStatusEnabledActions
Loading services...
+
+ + + + + + + + + + + + + + +
ServiceStatusEnabledActions
Loading services...
+
diff --git a/installation_part1.sh b/installation_part1.sh index b859484..a07277a 100644 --- a/installation_part1.sh +++ b/installation_part1.sh @@ -100,7 +100,7 @@ fi # Add sudo authorization (prevent duplicate entries) info "Setting up sudo authorization..." if ! sudo grep -q "/usr/bin/nmcli" /etc/sudoers; then - echo -e "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmcli, /usr/sbin/reboot\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/git pull\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/ssh\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/python3 *" | sudo tee -a /etc/sudoers > /dev/null + echo -e "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmcli, /usr/sbin/reboot\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/git pull\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/ssh\nwww-data ALL=(ALL) NOPASSWD: /usr/bin/python3 * www-data ALL=(ALL) NOPASSWD: /bin/systemctl *" | sudo tee -a /etc/sudoers > /dev/null success "Sudo authorization added." else warning "Sudo authorization already set. Skipping."