From 4f1aeb880ea8f5ec67417fcb34f2a3d20d40e7a4 Mon Sep 17 00:00:00 2001 From: intrigeri <intrigeri@boum.org> Date: Tue, 5 Sep 2017 12:32:34 +0000 Subject: [PATCH] Mangle /etc/backup.d permissions at build time rather than at postinst time. --- debian/backupninja.postinst | 6 ------ debian/rules | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/debian/backupninja.postinst b/debian/backupninja.postinst index 89c991d..159df1f 100644 --- a/debian/backupninja.postinst +++ b/debian/backupninja.postinst @@ -1,12 +1,6 @@ #!/bin/sh set -e -# Automatically added by dh_installmenu -if [ "$1" = "configure" ] -then - chmod 770 /etc/backup.d -fi - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. diff --git a/debian/rules b/debian/rules index 61ca5ab..e92a8c9 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,10 @@ override_dh_auto_install: override_dh_compress: dh_compress -Xexample +override_dh_fixperms: + dh_fixperms + chmod 770 $(TMP)/etc/backup.d + override_dh_installchangelogs: dh_installchangelogs ChangeLog -- GitLab