Skip to content

Commit

Permalink
Don't use sudo in postinst/postrm scripts for deb
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <dmulder@samba.org>
  • Loading branch information
dmulder committed Oct 15, 2024
1 parent 58b0d50 commit 48f650c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/debian/scripts/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ if [[ -f /etc/apparmor.d/unix-chkpwd ]]; then
echo "$UNIX_CHKPWD_PATCH" | patch --fuzz 2 --silent --forward -p0 /etc/apparmor.d/unix-chkpwd

# Reload the AppArmor profile to apply the changes
sudo apparmor_parser -r /etc/apparmor.d/unix-chkpwd
apparmor_parser -r /etc/apparmor.d/unix-chkpwd
fi
2 changes: 1 addition & 1 deletion platform/debian/scripts/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ if [[ -f /etc/apparmor.d/unix-chkpwd ]]; then
echo "$UNIX_CHKPWD_PATCH" | patch --fuzz 2 --silent --reverse -p0 /etc/apparmor.d/unix-chkpwd

# Reload the AppArmor profile to apply the changes
sudo apparmor_parser -r /etc/apparmor.d/unix-chkpwd
apparmor_parser -r /etc/apparmor.d/unix-chkpwd
fi

0 comments on commit 48f650c

Please sign in to comment.