1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

Update upgrade

This commit is contained in:
frju365 2017-02-12 11:32:44 +01:00 committed by GitHub
parent 29fb46face
commit 92cade1144

View file

@ -16,15 +16,11 @@ if [[ ! "$path" == "/" ]]; then
path=${path%/}
fi
# Init final_path, if ever it got deleted somehow
# Copy files to the right place
final_path=/var/www/$app
sudo mkdir -p $final_path
# Clean up
# This will remove old paste data (otherwise we would need to lower down security)
sudo rm -rf $final_path/*
# Copy files to the right place
extract_source $final_path
# Files owned by root, www-data can just read
sudo chown www-data:www-data $final_path -R