mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Oops, missing function
This commit is contained in:
parent
03bb01a3d9
commit
172984666a
1 changed files with 24 additions and 0 deletions
|
@ -8,6 +8,30 @@
|
|||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
||||
upgrade_dolibarr() {
|
||||
ynh_setup_source --source_id="$source_id" --dest_dir="$install_dir" --full_replace=1 \
|
||||
--keep="htdocs/conf/conf.php htdocs/install/install.forced.php"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
|
||||
# Remove the lock if it exists
|
||||
lock=$install_dir/documents/install.lock
|
||||
if [ -f "$lock" ]; then
|
||||
ynh_secure_remove --file="$lock"
|
||||
fi
|
||||
|
||||
pushd "$install_dir/htdocs/install/"
|
||||
"php$phpversion" upgrade.php "$current_version" "$new_version"
|
||||
ynh_exec_fully_quiet sleep 5
|
||||
|
||||
"php$phpversion" upgrade2.php "$current_version" "$new_version"
|
||||
ynh_exec_fully_quiet sleep 5
|
||||
|
||||
"php$phpversion" step5.php "$current_version" "$new_version"
|
||||
ynh_exec_fully_quiet sleep 5
|
||||
popd
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# EXPERIMENTAL HELPERS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue