mirror of
https://github.com/YunoHost-Apps/framaforms_ynh.git
synced 2024-09-03 18:36:12 +02:00
Update upgrade
This commit is contained in:
parent
8e5e58bc1d
commit
4860903fa3
1 changed files with 5 additions and 5 deletions
|
@ -18,19 +18,19 @@ ynh_script_progression --message="Checking version..." --weight=1
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
# If db_name doesn't exist, create it
|
# If db_name doesn't exist, create it
|
||||||
if [ -z "$db_name" ]; then
|
if [ -z "${db_name:-}" ]; then
|
||||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If data_dir doesn't exist, create it
|
# If data_dir doesn't exist, create it
|
||||||
if [ -z "$data_dir" ]; then
|
if [ -z "${data_dir:-}" ]; then
|
||||||
data_dir=/home/yunohost.app/$app
|
data_dir=/home/yunohost.app/$app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
|
||||||
|
@ -56,9 +56,9 @@ then
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app dis framaforms_spam
|
ynh_exec_as $app env PATH=$PATH drush @$app dis framaforms_spam
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app pm-uninstall framaforms_spam
|
ynh_exec_as $app env PATH=$PATH drush @$app pm-uninstall framaforms_spam
|
||||||
popd
|
popd
|
||||||
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
update-alternatives --set php /usr/bin/php${YNH_PHP_VERSION}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue