1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-11-16 14:14:22 +01:00
parent 604e728587
commit f90e9bd9b8

View file

@ -81,22 +81,20 @@ ynh_use_logrotate --non-append
# CONFIGURE WALLABAG
#=================================================
# Alias for php-cli execution command
php_exec="ynh_exec_as $app php${YNH_PHP_VERSION} "$install_dir/bin/console" --no-interaction --env=prod"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Reconfiguring wallabag..." --weight=1
# Copy and set Wallabag dist configuration
ynh_add_config --template="parameters.yml" --destination="$install_dir/app/config/parameters.yml"
$php_exec cache:clear --env=prod
#=================================================
# UPGRADE WALLABAG
#=================================================
# Alias for php-cli execution command
php_exec="ynh_exec_as $app php${YNH_PHP_VERSION} "$install_dir/bin/console" --no-interaction --env=prod"
# Set permissions to app files
chown -R $app: $install_dir