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:
parent
d1ad1b6c6b
commit
6a8e977bd7
2 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue