summarylogtreecommitdiffstats
path: root/atlassian-bitbucket.install
blob: 9aea054b0338175d03e32c740e5df5ef6603e78c (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 bitbucket.conf
  #systemd-tmpfiles --create bitbucket.conf
  chown -R bitbucket:bitbucket /opt/atlassian-bitbucket /etc/bitbucket /var/lib/bitbucket
  chmod -R 750 /etc/bitbucket
  echo "If you are running bitbucket in a VM and/or are experiencing trouble with the ssh-plugin, it might be necessary to enable haveged."
}

pre_upgrade() {
    echo "Before upgrading bitbucket, you might want to take a look at https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html"
}

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

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