summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/sync-httpd.postinst4
-rw-r--r--debian/sync-httpd.service3
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/sync-httpd.postinst b/debian/sync-httpd.postinst
index 16acb35..60393ad 100644
--- a/debian/sync-httpd.postinst
+++ b/debian/sync-httpd.postinst
@@ -2,7 +2,7 @@
set -e
-TALER_HOME="/var/lib/taler/"
+SYNC_HOME="/var/lib/sync/"
_USERNAME=sync-httpd
_GROUPNAME=www-data
@@ -17,7 +17,7 @@ case "${1}" in
configure)
# Creating taler users if needed
if ! getent passwd ${_USERNAME} >/dev/null; then
- adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${TALER_HOME} ${_USERNAME}
+ adduser --quiet --system --ingroup ${_GROUPNAME} --no-create-home --home ${SYNC_HOME} ${_USERNAME}
fi
if ! dpkg-statoverride --list /etc/sync/secrets/sync-db.secret.conf >/dev/null 2>&1; then
diff --git a/debian/sync-httpd.service b/debian/sync-httpd.service
index c7b9fb2..2c97c37 100644
--- a/debian/sync-httpd.service
+++ b/debian/sync-httpd.service
@@ -6,3 +6,6 @@ User=sync-httpd
Type=simple
Restart=on-failure
ExecStart=/usr/bin/sync-httpd -c /etc/sync/sync.conf
+
+[Install]
+WantedBy=multi-user.target