mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
solved sudo bugs in role native-user-administrator
This commit is contained in:
parent
11deb714b9
commit
eca64d5a6a
@ -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:
|
||||
|
||||
```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 maintenance:mode --off
|
||||
```
|
||||
|
7
roles/native-journalctl/readme.md
Normal file
7
roles/native-journalctl/readme.md
Normal file
@ -0,0 +1,7 @@
|
||||
# role native-journalctl
|
||||
|
||||
# live monitoring
|
||||
|
||||
```bash
|
||||
watch -n 0.5 'journalctl -n 20 --no-pager'
|
||||
```
|
1
roles/native-user-administrator/files/administrator
Normal file
1
roles/native-user-administrator/files/administrator
Normal file
@ -0,0 +1 @@
|
||||
administrator ALL=(ALL:ALL) ALL
|
@ -1,2 +0,0 @@
|
||||
Defaults targetpw
|
||||
administrator ALL=(ALL) ALL
|
@ -16,5 +16,8 @@
|
||||
|
||||
- name: grant administrator sudo rights with password
|
||||
copy:
|
||||
src: "administrator.conf"
|
||||
dest: /etc/sudoers.d/administrator.conf
|
||||
src: "administrator"
|
||||
dest: /etc/sudoers.d/administrator
|
||||
mode: '0644'
|
||||
owner: root
|
||||
group: root
|
||||
|
Loading…
Reference in New Issue
Block a user