1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Use = intead of space for helper args to avoid issue with parameter

This commit is contained in:
Josué Tille 2024-04-26 21:57:26 +02:00
parent b1d6501aaf
commit abe4a95b00
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
5 changed files with 8 additions and 8 deletions

View file

@ -113,8 +113,8 @@ ensure_vars_set() {
element_instance=element element_instance=element
if yunohost --output-as plain app list | grep -q "^$element_instance"'$'; then if yunohost --output-as plain app list | grep -q "^$element_instance"'$'; then
element_domain=$(ynh_app_setting_get --app $element_instance --key domain) element_domain=$(ynh_app_setting_get --app=$element_instance --key=domain)
element_path=$(ynh_app_setting_get --app $element_instance --key path) element_path=$(ynh_app_setting_get --app=$element_instance --key=path)
web_client_location="https://""$element_domain""$element_path" web_client_location="https://""$element_domain""$element_path"
fi fi
ynh_app_setting_set --app="$app" --key=web_client_location --value="$web_client_location" ynh_app_setting_set --app="$app" --key=web_client_location --value="$web_client_location"

View file

@ -37,7 +37,7 @@ ynh_backup --src_path="$install_dir"
#================================================= #=================================================
# BACKUP THE PHP-FPM CONFIGURATION # BACKUP THE PHP-FPM CONFIGURATION
ynh_backup --src_path "/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
if yunohost --output-as plain domain list | grep -q "^$server_name$" if yunohost --output-as plain domain list | grep -q "^$server_name$"
@ -90,7 +90,7 @@ ynh_backup --src_path="/var/log/matrix-$app" --is_big=1
#================================================= #=================================================
# Copy hook # Copy hook
ynh_backup --src_path "/etc/yunohost/hooks.d/post_cert_update/50-$app" ynh_backup --src_path="/etc/yunohost/hooks.d/post_cert_update/50-$app"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -171,7 +171,7 @@ configure_coturn
#================================================= #=================================================
ynh_script_progression --message="Configuring log rotation..." --weight=2 ynh_script_progression --message="Configuring log rotation..." --weight=2
ynh_use_logrotate --logfile "/var/log/matrix-$app" ynh_use_logrotate --logfile="/var/log/matrix-$app"
#================================================= #=================================================
# ADD SCRIPT FOR COTURN CRON AND APP SERVICE # ADD SCRIPT FOR COTURN CRON AND APP SERVICE

View file

@ -104,7 +104,7 @@ configure_coturn
#================================================= #=================================================
ynh_script_progression --message="Configuring log rotation..." ynh_script_progression --message="Configuring log rotation..."
ynh_use_logrotate --logfile /var/log/matrix-$app ynh_use_logrotate --logfile=/var/log/matrix-$app
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -30,7 +30,7 @@ if [ -z "${domain:-}" ]; then
ynh_app_setting_set --app=$app --key=path --value=$path ynh_app_setting_set --app=$app --key=path --value=$path
ynh_app_setting_delete --app=$app --key=special_domain ynh_app_setting_delete --app=$app --key=special_domain
ynh_app_setting_delete --app=$app --key=special_path ynh_app_setting_delete --app=$app --key=special_path
ynh_app_setting_set --app=$app --key=no_sso --value true ynh_app_setting_set --app=$app --key=no_sso --value=true
fi fi
ensure_vars_set ensure_vars_set
@ -187,7 +187,7 @@ then
# MAKE A CLEAN LOGROTATE CONFIG # MAKE A CLEAN LOGROTATE CONFIG
#================================================= #=================================================
ynh_use_logrotate --logfile /var/log/matrix-$app --nonappend ynh_use_logrotate --logfile=/var/log/matrix-$app --nonappend
fi fi
#================================================= #=================================================