aboutsummaryrefslogtreecommitdiff
path: root/templates/refresh.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/refresh.sh.erb')
-rw-r--r--templates/refresh.sh.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index bca18e4..6680f23 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -21,6 +21,11 @@ if [ ! -e "$CONF/$NAME.setup" ]; then
exit 1
fi
+# Deploy if needed
+if [ ! -d "$REPO" ]; then
+ ikiwiki-deploy $NAME $INSTANCE
+fi
+
# Setup
ikiwiki --setup /etc/ikiwiki/$NAME.setup