1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00

fixed the error in upgrade script for not creating final_path

This commit is contained in:
anmol26s 2017-10-25 21:34:19 +05:30
parent 24115e7845
commit b9d5c9e75c

View file

@ -40,8 +40,7 @@ if [ -z $db_name ]; then
db_name=$(ynh_sanitize_dbid $app)
ynh_app_setting_set $app db_name $db_name
fi
#move the final_path to final_path.old
sudo mv ${final_path} ${final_path}.old
# If final_path doesn't exist, create it
if [ -z $final_path ]; then
@ -77,6 +76,9 @@ path_url=$(ynh_normalize_url_path $path_url)
# Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source "$final_path"
#move the final_path to final_path.old
sudo mv ${final_path} ${final_path}.old
sudo mkdir -p $final_path
ynh_setup_source "$final_path"
#copy cofig.php from final_path.old to final_path