diff options
Diffstat (limited to 'configuration')
-rw-r--r-- | configuration/debian/tedge_agent/postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configuration/debian/tedge_agent/postinst b/configuration/debian/tedge_agent/postinst index 67243e8b..4359aaec 100644 --- a/configuration/debian/tedge_agent/postinst +++ b/configuration/debian/tedge_agent/postinst @@ -15,10 +15,10 @@ fi ### Create file in /etc/sudoers.d directory # tedge-agent needs to execute some of its operations as a system user therefore it needs an entry in /etc/sudoers. -echo "%tedge-agent ALL = (ALL) NOPASSWD: /etc/tedge/sm-plugins/[a-zA-Z0-9]*" >/etc/sudoers.d/tedge-agent +echo "%tedge-agent ALL = (ALL) NOPASSWD: /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init" >/etc/sudoers.d/tedge-agent if [ -f "/etc/sudoers.d/010_pi-nopasswd" ]; then - echo "%tedge-agent ALL = (ALL) NOPASSWD: /etc/tedge/sm-plugins/[a-zA-Z0-9]*" >/etc/sudoers.d/tedge-agent-nopasswd + echo "%tedge-agent ALL = (ALL) NOPASSWD: /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init" >/etc/sudoers.d/tedge-agent-nopasswd fi ### Create directories |