1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Fix from kay0u suggestion

This commit is contained in:
mastereur 2019-07-04 12:03:16 +02:00
parent d1ad1b6c6b
commit 6a8e977bd7
2 changed files with 7 additions and 3 deletions

View file

@ -9,4 +9,4 @@
- [ ] Tested with Package_check. - [ ] Tested with Package_check.
- [ ] Fix or enhancement tested. - [ ] Fix or enhancement tested.
- [ ] Upgrade from last version tested. - [ ] Upgrade from last version tested.
- [ Can be reviewed and tested. - [ ] Can be reviewed and tested.

View file

@ -144,12 +144,15 @@ then
# Remove the lock if it exists # Remove the lock if it exists
lock=$final_path/documents/install.lock lock=$final_path/documents/install.lock
[[ -f $lock ]] && sudo rm $lock if -f $lock
then
ynh_secure_remove $lock
fi
mkdir -p /var/log/$app/ mkdir -p /var/log/$app/
# Upgrade with CURL # Upgrade with CURL
cd $final_path/htdocs/install/ pushd $final_path/htdocs/install/
if php upgrade.php $current_version $update_version > /var/log/$app/upgrade.html; then if php upgrade.php $current_version $update_version > /var/log/$app/upgrade.html; then
ynh_print_info --message="Step 1 upgrading ended successfully" ynh_print_info --message="Step 1 upgrading ended successfully"
else else
@ -165,6 +168,7 @@ then
else else
ynh_print_warn --message="Step 3 upgrading ended with error" ynh_print_warn --message="Step 3 upgrading ended with error"
fi fi
popd
fi fi
#================================================= #=================================================