1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

Update upgrade

Moved the remove command and co into the if [ "$upgrade_type" == "UPGRADE_APP" ] block
This commit is contained in:
Thatoo 2019-06-30 15:43:17 +02:00 committed by GitHub
parent 2250ffe38a
commit ea3e5797d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,17 +25,17 @@ path=${path%/}
# Retreive sources and install them
src_path=/var/www/$app
sudo rm -rf $src_path
sudo mkdir -p $src_path
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
sudo rm -rf $src_path
sudo mkdir -p $src_path
ynh_script_progression --message="Upgrading source files..." --time --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$src_path
sudo chown -R www-data: $src_path
fi
sudo chown -R www-data: $src_path
# Modify Nginx configuration file and copy it to Nginx conf directory
nginx_conf=../conf/nginx.conf