summarylogtreecommitdiffstats
path: root/rocketchat-server.install
blob: 8ad5d54f0660f326c2b28b77d2f440fdde6ee6c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh
# vim:set ts=4 sw=4 et:

username="rocketchat"

post_install() {
    systemd-sysusers "${username}.conf"
    chown -R "${username}:${username}" /etc/${username} /usr/share/${username}-server
}


post_upgrade(){
    getent passwd "${username}" >/dev/null 2>&1 || systemd-sysusers "${username}.conf"
}