summaryrefslogtreecommitdiff
path: root/pkg/server
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-13 12:40:54 -0300
committerdrebs <drebs@riseup.net>2017-09-14 12:04:56 -0300
commit4946d4ec8c5a4fd26f5eef018bcc60442e9df737 (patch)
treee26697b67773750e6ca45b85539cae1e64fcfaf5 /pkg/server
parentddb830fdfe767efe1dd8e4e27281531938211203 (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.
Diffstat (limited to 'pkg/server')
-rw-r--r--pkg/server/soledad-server.postinst4
1 files changed, 2 insertions, 2 deletions
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