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:
parent
be3756a828
commit
cf1b8675ea
1 changed files with 3 additions and 7 deletions
|
@ -153,8 +153,8 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Building Kimai2..." --weight=1
|
ynh_script_progression --message="Building Kimai2..." --weight=1
|
||||||
|
|
||||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" --install_args="--optimize-autoloader"
|
ynh_install_composer --phpversion="$YNH_PHP_VERSION" --workdir="$final_path" --install_args="--optimize-autoloader"
|
||||||
ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="require laminas/laminas-ldap"
|
ynh_composer_exec --phpversion="$YNH_PHP_VERSION" --workdir="$final_path" --commands="require laminas/laminas-ldap"
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
@ -190,14 +190,10 @@ chown $app:$app "$final_path/.env"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Kimai2..." --weight=1
|
ynh_script_progression --message="Installing Kimai2..." --weight=1
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php$phpversion
|
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_exec_as $app php$phpversion bin/console kimai:update -n
|
ynh_exec_as $app php$YNH_PHP_VERSION bin/console kimai:update -n
|
||||||
popd
|
popd
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue