From 4946d4ec8c5a4fd26f5eef018bcc60442e9df737 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 13 Sep 2017 12:40:54 -0300 Subject: [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. --- pkg/server/soledad-server.postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') 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 -- cgit v1.2.3