From a8f15bf201ba6b891c659414344da1d67d8bf11e Mon Sep 17 00:00:00 2001 From: "Henner M. Kruse" Date: Sun, 31 May 2020 23:13:01 +0200 Subject: [PATCH] Changed updater --- update.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 update.sh diff --git a/update.sh b/update.sh old mode 100644 new mode 100755 index 4087974..43d7587 --- a/update.sh +++ b/update.sh @@ -1,9 +1,13 @@ -#!/bin env +#!/usr/bin/env bash WEBSERVER='aquaria' -source ./venv/activate +[[ ! ${VIRTUAL_ENV} ]] && NO_VENV=1 && source ./venv/bin/activate + # Build pelican + # And upload scp -r output/* ${WEBSERVER}:~/web/ + +[[ ${NO_VENV} ]] && deactivate