1
0
Fork 0
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:
CodeShakingSheep 2024-01-15 12:09:23 +01:00 committed by GitHub
parent 2e92e115c8
commit fd9ce4dfa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"