aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 20:44:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 20:44:59 -0300
commit2d304317118ecb8296bcc3ed489dea7af7828b03 (patch)
treeb6a156f3ddb2455d7a4fb7471064f877df85f03b /templates
parentff2ef8f403968e16d662676f4dfbbdd991270804 (diff)
downloadpuppet-ikiwiki-2d304317118ecb8296bcc3ed489dea7af7828b03.tar.gz
puppet-ikiwiki-2d304317118ecb8296bcc3ed489dea7af7828b03.tar.bz2
Adding git_folder parameter
Diffstat (limited to 'templates')
-rw-r--r--templates/deploy.sh.erb2
-rw-r--r--templates/refresh.sh.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb
index e895546..2673d3a 100644
--- a/templates/deploy.sh.erb
+++ b/templates/deploy.sh.erb
@@ -12,8 +12,8 @@ INSTANCE="ikiwiki"
CONF="/etc/ikiwiki"
BASE="<%= scope.lookupvar('ikiwiki::sites_folder') %>"
REPO_OWNER="<%= scope.lookupvar('ikiwiki::git_implementation') %>"
+REPO="<%= scope.lookupvar('ikiwiki::git_folder') %>/$NAME.git"
REMOTE="$REPO_OWNER@localhost:$NAME"
-REPO="/var/git/repositories/$NAME.git"
# Syntax check
if [ -z "$INSTANCE" ]; then
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index 10b96c1..7e7adf6 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -14,7 +14,7 @@ WWW_USER="<%= scope.lookupvar('ikiwiki::www_user') %>"
BASE="<%= scope.lookupvar('ikiwiki::sites_folder') %>"
REPO_OWNER="<%= scope.lookupvar('ikiwiki::git_implementation') %>"
REPO_GROUP="<%= scope.lookupvar('ikiwiki::git_implementation') %>"
-REPO="/var/git/repositories/$NAME.git"
+REPO="<%= scope.lookupvar('ikiwiki::git_folder') %>/$NAME.git"
# Syntax check
if [ -z "$INSTANCE" ]; then