summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-09-05 10:18:00 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-09-05 10:18:00 (GMT)
commit1fda86cab8d67757844ad373750e472aabfbf7da (patch)
tree42f1e3fe742e940c8ab9d841b27457bf1f368f05
parent1972c917d510c711ff492ebf6b4f959b103c78ef (diff)
downloaddefinitions-baserock/franred/packtracker-issuetracker.tar.gz
-rwxr-xr-xgerrit.configure8
1 files changed, 5 insertions, 3 deletions
diff --git a/gerrit.configure b/gerrit.configure
index bc2719f..25109f1 100755
--- a/gerrit.configure
+++ b/gerrit.configure
@@ -22,9 +22,7 @@ set -e
ROOT="$1"
-##########################################################################
-
-set -e
+###############################################################################
# Set bash as default shell
ln -sfn "/bin/bash" "$ROOT/bin/sh"
@@ -35,6 +33,8 @@ echo "Creating gerrit setup script"
cat << EOF > "$ROOT"/usr/local/share/gerrit/gerrit-setup
#!/bin/sh
+set -e
+
# Add Admin Gerrit User
adduser -D -h /home/gerrit2 -g "Gerrit Administrator" -s /bin/sh gerrit2
@@ -85,6 +85,8 @@ ConditionPathExists=/home/gerrit2/gerrit/.gerrit_controller
User=gerrit2
Group=gerrit2
Environment="PATH=/usr/bin:/bin"
+Type=forking
+PIDFile=/home/gerrit2/gerrit/.gerrit_controller.pid
ExecStart=/home/gerrit2/gerrit/.gerrit_controller/bin/gerrit.sh start
[Install]