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:
parent
604e728587
commit
f90e9bd9b8
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue