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
81860ac588
commit
1f63ff4026
1 changed files with 5 additions and 5 deletions
|
@ -114,11 +114,6 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --keep="config/packages/local.yaml var/invoices/ var/data/"
|
ynh_setup_source --dest_dir="$final_path" --keep="config/packages/local.yaml var/invoices/ var/data/"
|
||||||
pushd "$final_path"
|
|
||||||
ynh_exec_as $app php$YNH_PHP_VERSION bin/console cache:clear --env=prod
|
|
||||||
popd
|
|
||||||
|
|
||||||
#ynh_secure_remove --file="$final_path/var/cache/prod"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -159,8 +154,13 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Building Kimai2..." --weight=1
|
ynh_script_progression --message="Building Kimai2..." --weight=1
|
||||||
|
|
||||||
ynh_install_composer --phpversion="$YNH_PHP_VERSION" --workdir="$final_path" --install_args="--optimize-autoloader"
|
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_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 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue