summarylogtreecommitdiffstats
path: root/teamcity.install
blob: 8b1f36057acc82c6efb38636e080da8e229cd817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  systemd-sysusers teamcity.conf
  chown -R teamcity /opt/teamcity /var/lib/teamcity
  echo "If you want to use a different Java, set it in /etc/conf.d/teamcity"
  echo
  echo "To start Teamcity instance:"
  echo "  systemctl start teamcity-server"
  echo "  systemctl start teamcity-agent"
  echo
  echo "Default TeamCity port is 8111."
}

pre_upgrade() {
	rm -rf /opt/teamcity/webapps/ROOT
}

post_upgrade() {
  systemd-sysusers teamcity.conf
  chown -R teamcity /opt/teamcity /var/lib/teamcity
}