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 #!/bin/bash
set -e
# Build # Build
cd v2 cd v2
hugo hugo
cd .. cd ..
# Backup current deploy # 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" echo "$1"
if [[ "$1" == "--full" ]]; then if [[ "$1" == "--full" ]]; then
echo "Deploy full legacy and new blog" echo "Deploy full legacy and new blog"