about summary refs log tree commit diff stats
path: root/tools/conf
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-10-26 19:45:54 +0100
committerSilvino Silva <silvino@bk.ru>2016-10-26 20:54:21 +0100
commit5509a84e0d1a2732a429120e0bd26b83e119481f (patch)
tree25a11a08a96f361b91dd8f01425951d67ac93a1e /tools/conf
parente531438cca8a8c1a5c7ccc87cbd1abfcd3fd7fcf (diff)
downloaddoc-5509a84e0d1a2732a429120e0bd26b83e119481f.tar.gz
fix tools gitolite hook deployweb
Diffstat (limited to 'tools/conf')
-rwxr-xr-xtools/conf/srv/gitolite/deployweb6
-rwxr-xr-xtools/conf/srv/gitolite/hook-deployweb5
2 files changed, 5 insertions, 6 deletions
diff --git a/tools/conf/srv/gitolite/deployweb b/tools/conf/srv/gitolite/deployweb
index ca4dce8..5a18ed1 100755
--- a/tools/conf/srv/gitolite/deployweb
+++ b/tools/conf/srv/gitolite/deployweb
@@ -3,11 +3,11 @@
 ######################################################################
 #
 # Put this file in;
-# /usr/share/gitolite/hooks/deployweb
+# /usr/share/gitolite/deployweb
 #
 DIR_WWW=/srv/www/
-DEPLOY_BRANCH=master
-TARGET_USER=www
+DEPLOY_BRANCH=deployweb
+TARGET_USER=nginx
 
 for DP_FILE in /srv/gitolite/deploy/*
 do
diff --git a/tools/conf/srv/gitolite/hook-deployweb b/tools/conf/srv/gitolite/hook-deployweb
index a311c00..1a32bd9 100755
--- a/tools/conf/srv/gitolite/hook-deployweb
+++ b/tools/conf/srv/gitolite/hook-deployweb
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 ######################################################################
 #
@@ -10,7 +10,7 @@ do
     BRANCH=$(git rev-parse --symbolic --abbrev-ref $refname)
     echo "Commit was for branch $BRANCH"
 
-    if [[ "$BRANCH" == "master" ]];then
+    if [ "$BRANCH" = "deployweb" ]; then
 
         # Get project name from current directory (without .git)
         PROJECT=$(basename "$PWD")
@@ -19,5 +19,4 @@ do
         echo "Project $PROJECT added to deploy list."
         echo $PWD > /srv/gitolite/deploy/$PROJECT
     fi
-
 done