diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-10-23 13:21:40 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-10-23 13:21:40 -0700 |
commit | 01fdab71e829057d91fb411bce62b5368735ca89 (patch) | |
tree | 8716cf29a98d71f2f36245a4e2653bfd96a73bf9 /debian | |
parent | 253fec9afe841f83cef716ff14d861fc496474cb (diff) | |
download | keysafe-01fdab71e829057d91fb411bce62b5368735ca89.tar.gz |
postinst always needs to chown /var/lib/keysafe
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/keysafe-server.postinst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/keysafe-server.postinst b/debian/keysafe-server.postinst index 7282e29..44fc00c 100755 --- a/debian/keysafe-server.postinst +++ b/debian/keysafe-server.postinst @@ -5,8 +5,9 @@ set -e if ! getent passwd _keysafe >/dev/null; then adduser --system --group --disabled-login --disabled-password \ --home /var/lib/keysafe --force-badname _keysafe +fi +if [ -d "/var/lib/keysafe" ]; then chmod 700 /var/lib/keysafe -elif [ -d "/var/lib/keysafe" ]; then chown -R _keysafe:_keysafe /var/lib/keysafe fi |