feat: add -t for sudo in deploy
This commit is contained in:
parent
409cba27a5
commit
391be8705d
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user