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:
parent
2250ffe38a
commit
ea3e5797d4
1 changed files with 3 additions and 3 deletions
|
@ -25,17 +25,17 @@ path=${path%/}
|
||||||
|
|
||||||
# Retreive sources and install them
|
# Retreive sources and install them
|
||||||
src_path=/var/www/$app
|
src_path=/var/www/$app
|
||||||
sudo rm -rf $src_path
|
|
||||||
sudo mkdir -p $src_path
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
sudo rm -rf $src_path
|
||||||
|
sudo mkdir -p $src_path
|
||||||
ynh_script_progression --message="Upgrading source files..." --time --weight=1
|
ynh_script_progression --message="Upgrading source files..." --time --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir=$src_path
|
ynh_setup_source --dest_dir=$src_path
|
||||||
|
sudo chown -R www-data: $src_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo chown -R www-data: $src_path
|
|
||||||
|
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
nginx_conf=../conf/nginx.conf
|
nginx_conf=../conf/nginx.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue