diff options
author | initard <alex.solomes@softwareag.com> | 2021-12-09 17:33:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 17:33:14 +0000 |
commit | bffcdf1fcfc4d90ee786fb09a2a77ad26591ff9b (patch) | |
tree | 8a06c0d35788f7e2c91fc00cf457d23d93c85b9a /configuration | |
parent | 76bd3f813dec8cde09040cac5d262cec0aef117c (diff) |
updated tedge agent post install to have access to sync and init (#697)
commands (#683)
Signed-off-by: initard <solo@softwareag.com>
Co-authored-by: initard <solo@softwareag.com>
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 |