diff options
author | Massimiliano Torromeo | 2015-08-24 17:17:28 +0200 |
---|---|---|
committer | Massimiliano Torromeo | 2015-08-24 17:17:28 +0200 |
commit | 83c1066422a35f9d6d830bc7813a7c2eb5d1538f (patch) | |
tree | 79bf39fa664af21db158cee930de537f7ba70672 /mattermost.install | |
download | aur-83c1066422a35f9d6d830bc7813a7c2eb5d1538f.tar.gz |
Initial commit
Diffstat (limited to 'mattermost.install')
-rw-r--r-- | mattermost.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mattermost.install b/mattermost.install new file mode 100644 index 000000000000..fad79cda3263 --- /dev/null +++ b/mattermost.install @@ -0,0 +1,13 @@ +post_install() { + systemd-sysusers mattermost.conf + + if [[ ! -e var/lib/mattermost ]]; then + install -dm700 -o mattermost var/lib/mattermost + fi + + chown mattermost var/log/mattermost +} + +post_upgrade() { + post_install +} |