diff options
author | drebs <drebs@riseup.net> | 2017-09-13 12:40:54 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-09-14 12:04:56 -0300 |
commit | 4946d4ec8c5a4fd26f5eef018bcc60442e9df737 (patch) | |
tree | e26697b67773750e6ca45b85539cae1e64fcfaf5 | |
parent | ddb830fdfe767efe1dd8e4e27281531938211203 (diff) |
[pkg] use /var/lib/soledad as home directory for users
The soledad-server debian package adds 2 users (soledad and
soledad-admin), and was previously using /srv/leap as their home
directories. As we are now using /var/lib/soledad for blobs, it also
makes sense to have soledad users' home directories be set for
/var/lib/soledad. This commit implements that.
-rw-r--r-- | debian/soledad-server.dirs | 1 | ||||
-rw-r--r-- | pkg/server/soledad-server.postinst | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/debian/soledad-server.dirs b/debian/soledad-server.dirs index 0819eebb..deb9f393 100644 --- a/debian/soledad-server.dirs +++ b/debian/soledad-server.dirs @@ -1 +1,2 @@ +var/lib/soledad var/lib/soledad/blobs diff --git a/pkg/server/soledad-server.postinst b/pkg/server/soledad-server.postinst index eea93857..6a6fcf70 100644 --- a/pkg/server/soledad-server.postinst +++ b/pkg/server/soledad-server.postinst @@ -17,7 +17,7 @@ id soledad > /dev/null 2>&1 RET=$? if [ ! $RET -eq 0 ]; then - adduser --system soledad --no-create-home --home /srv/leap/ --ingroup soledad + adduser --system soledad --no-create-home --home /var/lib/soledad/ --ingroup soledad fi # allow soledad user to read ssl certificates @@ -28,7 +28,7 @@ id soledad-admin > /dev/null 2>&1 RET=$? if [ ! $RET -eq 0 ]; then - adduser --system soledad-admin --no-create-home --home /srv/leap/ --ingroup soledad + adduser --system soledad-admin --no-create-home --home /var/lib/soledad/ --ingroup soledad fi # update systemd and start service |