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

This commit is contained in:
Éric Gaspar 2023-09-09 20:55:30 +02:00
parent 1f63ff4026
commit 2ca0d58770

View file

@ -153,14 +153,10 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Building Kimai2..." --weight=1
ynh_secure_remove --file="$final_path/var/cache/prod"
ynh_install_composer --phpversion="$YNH_PHP_VERSION" --workdir="$final_path" --install_args="--optimize-autoloader"
pushd "$final_path"
ynh_exec_as $app php$YNH_PHP_VERSION bin/console cache:clear --env=prod
popd
ynh_composer_exec --phpversion="$YNH_PHP_VERSION" --workdir="$final_path" --commands="require laminas/laminas-ldap"
#ynh_secure_remove --file="$final_path/var/cache/prod"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"