mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
fix
This commit is contained in:
parent
063bb96781
commit
2e3c43ecb1
2 changed files with 23 additions and 23 deletions
|
@ -4,6 +4,29 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
upgrade_dolibarr() {
|
||||
ynh_setup_source --source_id="$source_id" --dest_dir="$install_dir"
|
||||
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
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -53,29 +53,6 @@ ynh_add_fpm_config --usage="$fpm_usage" --footprint="$fpm_footprint"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=60
|
||||
|
||||
upgrade_dolibarr() {
|
||||
ynh_setup_source --source_id="$source_id" --dest_dir="$install_dir"
|
||||
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
|
||||
}
|
||||
|
||||
# Sort --version-sort cdécembrean handle underscore in versions numbers
|
||||
mapfile -t main_versions < <(
|
||||
ynh_read_manifest --key="resources.sources | keys[]" | grep "main_" | sort --version-sort
|
||||
|
|
Loading…
Add table
Reference in a new issue