From 391be8705d5c51276a7e7f66e1a618cdd309d9c5 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Mon, 11 Dec 2023 08:45:00 +0100 Subject: [PATCH] feat: add -t for sudo in deploy --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 8e2728c..b1b8906 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,10 +1,11 @@ #!/bin/bash +set -e # Build cd v2 hugo cd .. # Backup current deploy -ssh home.hugopoi.net sudo yunohost backup create --apps my_webapp +ssh -t home.hugopoi.net sudo yunohost backup create --apps my_webapp echo "$1" if [[ "$1" == "--full" ]]; then echo "Deploy full legacy and new blog"