2018-03-11 11:14:36 +01:00
|
|
|
post_install() {
|
|
|
|
getent group ffsync &>/dev/null || groupadd -r ffsync >/dev/null
|
|
|
|
getent passwd ffsync &>/dev/null || useradd -r -s /usr/bin/false \
|
2020-06-02 04:33:17 +02:00
|
|
|
-g ffsync -G ffsync,http -d /var/lib/ffsync ffsync >/dev/null
|
|
|
|
|
|
|
|
chown -R ffsync:ffsync /var/lib/ffsync
|
|
|
|
systemd-tmpfiles --create ffsync.conf
|
2018-03-11 11:14:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
post_update() {
|
2020-06-02 04:33:17 +02:00
|
|
|
chown -R ffsync:ffsync /var/lib/ffsync
|
|
|
|
chown -R ffsync:http /run/ffsync
|
|
|
|
|
2018-03-11 11:14:36 +01:00
|
|
|
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
|
|
|
|
}
|