Skip to content

Commit bb6164c

Browse files
committed
new key and allow apt upgrade
1 parent 4e0c277 commit bb6164c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

root/etc/sudoers.d/workers

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Give workers access to a few things as root. They run as user abc.
22
# The manager container also has access to run commands listed here.
3+
# Use DEBIAN_FRONTEND=noninteractive sudo -E for apt upgades.
34
abc ALL=(root) NOPASSWD: /usr/bin/systemctl restart supervisor
45
abc ALL=(root) NOPASSWD: /usr/bin/systemctl start supervisor
56
abc ALL=(root) NOPASSWD: /usr/sbin/reboot
67
abc ALL=(root) NOPASSWD: /usr/bin/apt update
8+
abc ALL=(root) NOPASSWD: /usr/bin/apt upgrade -y
79
abc ALL=(root) NOPASSWD: /usr/bin/apt install -y notifiarr-worker

root/home/abc/.ssh/authorized_keys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This authorized ssh key gives the notifiarr manager access to the server.
2-
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAE0muF6X2CUaO/jOMjKeeGopp/VV8O6soGwrMScoqyE5dtp+PJ5yXMB0YdXVE8UEXOspYF1onuDEJa7xF1XJJe8owAXEWNP2ZoFHbKEL+sjRPEyyukrkHe/mLR/XuyO/d8ATfyYgsBuiQrm65JrG+hYUDSqiiYSat2+pR5dQ6H8bBCKMw== ABC
2+
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAHW33s2kemAEYm1yqZ+FCEfis7q2Wyz4EzLSdiwKenZ7wqgzM7Q7yjMWY/vZEA22y6dKFol45TUYMXkoJvuIerKwwGjVPx6fdfWlIhMriCLgVfuOX0M6bN2rDeERrR28UyOPJ7LmG/Cd3hp5ws8qPweLqONUZZ7EAxxkh423qAt0P8Gkg== ABC2

0 commit comments

Comments
 (0)