1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00
This commit is contained in:
Éric Gaspar 2023-12-27 18:38:29 +01:00
parent 5820a4ae01
commit f72f1cbb61
3 changed files with 8 additions and 8 deletions

View file

@ -50,7 +50,7 @@ ynh_add_nginx_config
# SETUP SQL CREDENTIALS # SETUP SQL CREDENTIALS
#================================================= #=================================================
ynh_add_config --template="../conf/common.php" --destination="$install_dir/protected/config/common.php" ynh_add_config --template="common.php" --destination="$install_dir/protected/config/common.php"
#================================================= #=================================================
# DEACTIVATE DEBUG MODE # DEACTIVATE DEBUG MODE
@ -133,7 +133,7 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Setuping crontab..." --weight=1 ynh_script_progression --message="Setuping crontab..." --weight=1
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/${app}" ynh_add_config --template="cron" --destination="/etc/cron.d/${app}"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=2 ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config

View file

@ -23,19 +23,19 @@ upgrade_type=$(ynh_check_app_version_changed)
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If fpm_footprint doesn't exist, create it # If fpm_footprint doesn't exist, create it
if [ -z "$fpm_footprint" ]; then if [ -z "${fpm_footprint:-}" ]; then
fpm_footprint=low fpm_footprint=low
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
fi fi
# If fpm_free_footprint doesn't exist, create it # If fpm_free_footprint doesn't exist, create it
if [ -z "$fpm_free_footprint" ]; then if [ -z "${fpm_free_footprint:-}" ]; then
fpm_free_footprint=0 fpm_free_footprint=0
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
fi fi
# If fpm_usage doesn't exist, create it # If fpm_usage doesn't exist, create it
if [ -z "$fpm_usage" ]; then if [ -z "${fpm_usage:-}" ]; then
fpm_usage=low fpm_usage=low
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi fi
@ -109,7 +109,7 @@ then
else else
current_version=$(cat $install_dir/$HUMHUB_AUTH_BASIC_PATH/module.json | jq -j '.version') current_version=$(cat $install_dir/$HUMHUB_AUTH_BASIC_PATH/module.json | jq -j '.version')
if [ "$current_version" != "$HUMHUB_AUTH_BASIC_VERSION" ]; then if [ "$current_version" != "$HUMHUB_AUTH_BASIC_VERSION" ]; then
#REMOVEME? ynh_secure_remove $install_dir/$HUMHUB_AUTH_BASIC_PATH ynh_secure_remove $install_dir/$HUMHUB_AUTH_BASIC_PATH
install_sso install_sso
fi fi
fi fi
@ -140,7 +140,7 @@ chown -R $app:www-data "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Upgrading crontab..." --weight=1 ynh_script_progression --message="Upgrading crontab..." --weight=1
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/${app}" ynh_add_config --template="cron" --destination="/etc/cron.d/${app}"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT