1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { systemd-sysusers mattermost.conf if [[ ! -e var/lib/mattermost ]]; then install -dm700 -o mattermost var/lib/mattermost fi chown mattermost etc/webapps/mattermost/config.json \ var/log/mattermost } post_upgrade() { post_install }