From: Silvio Rhatto Date: Thu, 11 Apr 2013 23:52:21 +0000 (-0300) Subject: Minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4b4bbc4b49ec0ac6dceb5d276bfb08d1a96ae306;p=puppet-ikiwiki.git Minor fix --- diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb index 2673d3a..8d5dfd8 100644 --- a/templates/deploy.sh.erb +++ b/templates/deploy.sh.erb @@ -7,13 +7,13 @@ NAME="$1" OWNER="$2" GROUP="$3" -SITE=$BASE/$NAME 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" +SITE=$BASE/$NAME # Syntax check if [ -z "$INSTANCE" ]; then diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb index 7e7adf6..6353822 100644 --- a/templates/refresh.sh.erb +++ b/templates/refresh.sh.erb @@ -7,7 +7,6 @@ NAME="$1" OWNER="$2" GROUP="$3" -SITE="$BASE/$NAME" CONF="/etc/ikiwiki" INSTANCE="ikiwiki" WWW_USER="<%= scope.lookupvar('ikiwiki::www_user') %>" @@ -15,6 +14,7 @@ BASE="<%= scope.lookupvar('ikiwiki::sites_folder') %>" REPO_OWNER="<%= scope.lookupvar('ikiwiki::git_implementation') %>" REPO_GROUP="<%= scope.lookupvar('ikiwiki::git_implementation') %>" REPO="<%= scope.lookupvar('ikiwiki::git_folder') %>/$NAME.git" +SITE="$BASE/$NAME" # Syntax check if [ -z "$INSTANCE" ]; then