mirror of
https://github.com/YunoHost-Apps/kimai2_ynh.git
synced 2024-09-03 19:26:26 +02:00
Update upgrade
No loading from cache for major upgrade
This commit is contained in:
parent
2e92e115c8
commit
fd9ce4dfa3
1 changed files with 7 additions and 1 deletions
|
@ -165,7 +165,13 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Building Kimai2..." --weight=1
|
||||
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" --install_args="--optimize-autoloader"
|
||||
if ynh_compare_current_package_version --comparison le --version 1.30.0~ynh1
|
||||
then
|
||||
# No loading from cache for major upgrade
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" --install_args="--optimize-autoloader --no-cache"
|
||||
else
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" --install_args="--optimize-autoloader"
|
||||
fi
|
||||
ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="require laminas/laminas-ldap"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue