added install file

This commit is contained in:
Jonas Heinrich 2018-03-14 11:25:55 +01:00
parent 7e51c902ba
commit 4c4c51db46
2 changed files with 6 additions and 7 deletions

View file

@ -1,16 +1,14 @@
post_install() {
getent group ffsync &>/dev/null || groupadd -r ffsync >/dev/null
getent passwd ffsync &>/dev/null || useradd -r -s /usr/bin/false \
-g ffsync -G ffsync,http -d /var/lib/ffsync ffsync >/dev/null
-g ffsync -G ffsync,http -d /var/lib/mozilla-firefox-sync-server ffsync >/dev/null
chown -R ffsync:ffsync /var/lib/ffsync
systemd-tmpfiles --create ffsync.conf
chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
#systemd-tmpfiles --create ffsync.conf
}
post_update() {
chown -R ffsync:ffsync /var/lib/ffsync
chown -R ffsync:http /run/ffsync
chown -R ffsync:ffsync /var/lib/mozilla-firefox-sync-server /etc/webapps/mozilla-firefox-sync-server
echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server"
}