From 40a82d27c47d214822d8b8524dc3270bcc5d7912 Mon Sep 17 00:00:00 2001 From: Colin Diem Date: Thu, 1 Oct 2020 01:23:27 -0400 Subject: [PATCH] Tweak to the deploy script to change directory before trying to pull from gitea. --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 8b3dd68..8faeba4 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,12 +1,13 @@ #!/bin/bash clear +echo "Changing to site directory." +cd /home/pi/quickstart echo "Pulling latest from git repo." git checkout master git pull echo "Running hugo and copying the public directory to the /srv/http directory." -cd /home/pi/quickstart hugo cp -r /home/pi/quickstart/public/. /srv/http