feat: add -t for sudo in deploy

This commit is contained in:
Hugo Poissonnet 2023-12-11 08:45:00 +01:00
parent 409cba27a5
commit 391be8705d
No known key found for this signature in database
GPG Key ID: E581734975D3836F

View File

@ -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"