From 173228bfdb21fd7a1582a9e0072b8da1c024a7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 12 Mar 2024 20:30:35 +0100 Subject: [PATCH] Fix again coturn rotate script --- sources/Coturn_config_rotate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/Coturn_config_rotate.sh b/sources/Coturn_config_rotate.sh index 707036e..53743ae 100644 --- a/sources/Coturn_config_rotate.sh +++ b/sources/Coturn_config_rotate.sh @@ -6,10 +6,13 @@ app=__APP__ YNH_APP_BASEDIR=/etc/yunohost/apps/"$app" pushd /etc/yunohost/apps/$app/conf + source /usr/share/yunohost/helpers + +# Must load db_name var to load _common.sh +db_name=$(ynh_app_setting_get --app=$app --key=db_name) source ../scripts/_common.sh -db_name=$(ynh_app_setting_get --app=$app --key=db_name) domain=$(ynh_app_setting_get --app=$app --key=domain) port_cli=$(ynh_app_setting_get --app=$app --key=port_cli) turnserver_pwd=$(ynh_app_setting_get --app=$app --key=turnserver_pwd)