summarylogtreecommitdiffstats
path: root/rocketchat-server-standalone.install
blob: 2dcb6d054158e704c806028ce49f4cd1207800ff (plain)
1
2
3
4
5
6
7
8
9
10
11
username="rocketchat"

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


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