summarylogtreecommitdiffstats
path: root/teamcity.install
diff options
context:
space:
mode:
authoryegorius2017-05-19 19:22:07 +0300
committeryegorius2017-05-19 19:22:07 +0300
commitdbae6cfe18e7205a7d3898174b952ae0286955f7 (patch)
treea4db69780c126a643a3f8b002c6c281bfd7d4195 /teamcity.install
parentfaf8e226df4ffc01a525f94bb92ff3d3ffdb8135 (diff)
downloadaur-dbae6cfe18e7205a7d3898174b952ae0286955f7.tar.gz
update to 2017.1.1
Diffstat (limited to 'teamcity.install')
-rw-r--r--teamcity.install17
1 files changed, 2 insertions, 15 deletions
diff --git a/teamcity.install b/teamcity.install
index c35c2026a563..dda16289b177 100644
--- a/teamcity.install
+++ b/teamcity.install
@@ -1,9 +1,6 @@
post_install() {
- echo "Creating user and group teamcity..."
- getent group teamcity >/dev/null || groupadd -r teamcity >/dev/null
- getent passwd teamcity >/dev/null || useradd -r -g teamcity -d /var/lib/teamcity -s /bin/bash teamcity >/dev/null
- chown -R teamcity /opt/teamcity
- chown -R teamcity /var/lib/teamcity
+ 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:"
@@ -12,13 +9,3 @@ post_install() {
echo
echo "Default TeamCity port is 8111."
}
-
-post_upgrade() {
- true
-}
-
-post_remove() {
- echo "Removing teamcity user and group..."
- getent passwd teamcity >/dev/null && userdel teamcity >/dev/null
- getent group teamcity >/dev/null && groupdel teamcity >/dev/null
-}