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:
parent
24115e7845
commit
b9d5c9e75c
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue