aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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