fix: permission in the folder to deploy
This commit is contained in:
@@ -6,6 +6,8 @@ hugo
|
||||
cd ..
|
||||
# Backup current deploy
|
||||
ssh -t home.hugopoi.net sudo yunohost backup create --apps my_webapp
|
||||
# TODO : remove this and use dedicated my_webapp user
|
||||
ssh -t home.hugopoi.net sudo chown -R admin /var/www/my_webapp/www/
|
||||
echo "$1"
|
||||
if [[ "$1" == "--full" ]]; then
|
||||
echo "Deploy full legacy and new blog"
|
||||
@@ -14,3 +16,5 @@ else
|
||||
echo "Deploy only the new hugo blog"
|
||||
rsync -rlgoD --verbose --checksum --delete www/v2/ home.hugopoi.net:/var/www/my_webapp/www/v2/
|
||||
fi
|
||||
# TODO : remove this and use dedicated my_webapp user
|
||||
ssh -t home.hugopoi.net sudo chown -R my_webapp /var/www/my_webapp/www/
|
||||
|
||||
Reference in New Issue
Block a user