solved sudo bugs in role native-user-administrator

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-01 12:51:40 +01:00
parent 11deb714b9
commit eca64d5a6a
5 changed files with 14 additions and 4 deletions

View File

@ -26,6 +26,7 @@ You can check the status of the update by typing in:
If nextcloud stays in the maintenance mode after the update try the following: If nextcloud stays in the maintenance mode after the update try the following:
```bash ```bash
docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --on
docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ upgrade docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ upgrade
docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --off docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --off
``` ```

View File

@ -0,0 +1,7 @@
# role native-journalctl
# live monitoring
```bash
watch -n 0.5 'journalctl -n 20 --no-pager'
```

View File

@ -0,0 +1 @@
administrator ALL=(ALL:ALL) ALL

View File

@ -1,2 +0,0 @@
Defaults targetpw
administrator ALL=(ALL) ALL

View File

@ -16,5 +16,8 @@
- name: grant administrator sudo rights with password - name: grant administrator sudo rights with password
copy: copy:
src: "administrator.conf" src: "administrator"
dest: /etc/sudoers.d/administrator.conf dest: /etc/sudoers.d/administrator
mode: '0644'
owner: root
group: root