diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-09 15:43:37 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-09 15:43:37 +0200 |
commit | 0f150d3c755c820615e9b976fb6ad67eeb73cd99 (patch) | |
tree | 0534be1db352135bbb588566d18f17ffc84d3b8a | |
parent | e068abf0bcb4b44b7a953757dc5e982165521584 (diff) | |
download | anastasis-0f150d3c755c820615e9b976fb6ad67eeb73cd99.tar.gz anastasis-0f150d3c755c820615e9b976fb6ad67eeb73cd99.tar.bz2 anastasis-0f150d3c755c820615e9b976fb6ad67eeb73cd99.zip |
check first
-rw-r--r-- | debian/anastasis-httpd.postinst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/anastasis-httpd.postinst b/debian/anastasis-httpd.postinst index 9f65341..03cd45a 100644 --- a/debian/anastasis-httpd.postinst +++ b/debian/anastasis-httpd.postinst @@ -31,9 +31,13 @@ configure) adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${ANASTASIS_HOME} ${_USERNAME} fi - dpkg-statoverride --add --update \ + if ! dpkg-statoverride --list /etc/anastasis/secrets/anastasis-db.secret.conf >/dev/null 2>&1; + then + dpkg-statoverride --add --update \ anastasis-httpd root 460 \ /etc/anastasis/secrets/anastasis-db.secret.conf + fi + ;; abort-upgrade | abort-remove | abort-deconfigure) ;; |