diff options
author | Vladislav | 2023-10-21 22:44:18 +0300 |
---|---|---|
committer | Vladislav | 2023-10-21 22:44:18 +0300 |
commit | 470094403993f8acda21a87ea47426a98267fb71 (patch) | |
tree | 871391e60874cc15021c4328a0c29d38d0df1e69 /rocketchat-server-standalone.install | |
download | aur-470094403993f8acda21a87ea47426a98267fb71.tar.gz |
Initial release
Diffstat (limited to 'rocketchat-server-standalone.install')
-rw-r--r-- | rocketchat-server-standalone.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rocketchat-server-standalone.install b/rocketchat-server-standalone.install new file mode 100644 index 000000000000..2dcb6d054158 --- /dev/null +++ b/rocketchat-server-standalone.install @@ -0,0 +1,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" +} |