Skip to content

Commit

Permalink
Merge pull request #255 from himmelblau-idm/dmulder/rm_sudo_from_post
Browse files Browse the repository at this point in the history
Don't use sudo in postinst/postrm scripts for deb
  • Loading branch information
dmulder authored Oct 15, 2024
2 parents 58b0d50 + 48f650c commit 25cee33
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 25cee33

Please sign in to comment.