summarylogtreecommitdiffstats
path: root/mattermost.install
blob: 28d102dcf867d1f3db9925640553bbc2b4f0074a (plain)
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
}