arch-packages/mozilla-firefox-sync-server.install
Manuel c24d2425eb Move to virtualenv environment
Refactored and reformatted entire PKGBUILD
Added support for ARM
Fix several build errors with patches to the Makefile
Fix package using wrong license (The project is using MPL 2.0)
2020-06-02 04:33:31 +02:00

21 lines
632 B
Text

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
chown -R ffsync:ffsync /var/lib/ffsync
systemd-tmpfiles --create ffsync.conf
}
post_update() {
chown -R ffsync:ffsync /var/lib/ffsync
chown -R ffsync:http /run/ffsync
echo ">> Documentation: https://wiki.archlinux.org/index.php/Mozilla_Firefox_Sync_Server"
}
pre_remove() {
getent passwd ffsync &>/dev/null && userdel ffsync >/dev/null
getent group ffsync &>/dev/null && groupdel ffsync >/dev/null
true
}