summarylogtreecommitdiffstats
path: root/atlassian-stash.install
blob: 46cbc0e6414483c22ca7810aa7950b2b6f3d8b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
  systemd-sysusers stash.conf
  systemd-tmpfiles --create stash.conf
  chown -R stash:stash /opt/atlassian-stash
  chown -R stash:stash /etc/stash
  chmod -R 750 /etc/stash
  echo "==> "
  echo "==> Bitbucket has finished installing."
  echo "==> Visit https://confluence.atlassian.com/display/BitbucketServer/Install+Bitbucket+Server+from+an+archive+file for configuration instructions."
  echo "==> "
}

post_upgrade() {
  post_install
  echo "Restart Bitbucket to complete upgrade."
}

pre_remove() {
  getent passwd stash &>/dev/null && userdel stash &> /dev/null
  getent group stash &>/dev/null && groupdel stash &> /dev/null
}