From c1aeb1f66181dde0a2e60640a400937c95a29b8e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 29 Jul 2026 13:56:03 -0700 Subject: [PATCH] d/postinst: Remove unnecessary file - The last bit code left in the file was a fix applied in 2018 and not used since we stopped using access.conf file. Tests: - Building Debian package works. - The Debian package still contains a postinst script with code for starting systemd daemon and for running other debhelper hooks. - Installing the Debian package on a fresh Debian trixie machine starts the FreedomBox service. First wizard finished without issues and bepasty app install succeeds. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- debian/freedombox.postinst | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 debian/freedombox.postinst diff --git a/debian/freedombox.postinst b/debian/freedombox.postinst deleted file mode 100755 index 940bce4a9..000000000 --- a/debian/freedombox.postinst +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -e - -# Due to a change in sudo, now it runs PAM modules even on password-less -# 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 -i 's+-:ALL EXCEPT root fbx (admin) (sudo):ALL+-:ALL EXCEPT root fbx plinth (admin) (sudo):ALL+' /etc/security/access.conf - -#DEBHELPER# - -exit 0