blob: 91045c0d1da37b249000833b1ffb2fa2635e9909 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
post_install() {
# Install the user and group if they don't exist
getent passwd syncthing >/dev/null || {
useradd -r -U -s /bin/nologin -d /var/discosrv syncthing
printf '%s\n' 'The syncthing user and group have been created'
}
getent passwd syncthing | grep -q '/var/discosrv' \
|| printf '%s\n' 'WARNING: The syncthing user home is not /var/discosrv'
# Setup the systemd tmpfiles
systemd-tmpfiles --create syncthing-discosrv.conf
}
post_upgrade() {
post_install
}
|