debian: Don't make backup of /etc/security/access.conf

Closes: #909484

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2018-09-24 18:46:19 -04:00
parent a307476634
commit bf347c4aee
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

2
debian/postinst vendored
View File

@ -12,7 +12,7 @@ daemongroup=plinth
# invocations. This leads to plinth not being able to run root privileges. This
# is because of our own restrictions in /etc/security/access.conf. Since Plinth
# is locked out after upgrade, we need to do this in postinst.
sed -ie 's+-:ALL EXCEPT root fbx (admin) (sudo):ALL+-:ALL EXCEPT root fbx plinth (admin) (sudo):ALL+' /etc/security/access.conf
sed -i 's+-:ALL EXCEPT root fbx (admin) (sudo):ALL+-:ALL EXCEPT root fbx plinth (admin) (sudo):ALL+' /etc/security/access.conf
case "$1" in
configure)