From 89c0b895eec5b18e1c6dbe5b61e684a46c746ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 18 Jan 2024 20:07:19 +0100 Subject: [PATCH] silent curl --- scripts/install | 2 +- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 0b5d6ac..96472cd 100644 --- a/scripts/install +++ b/scripts/install @@ -96,7 +96,7 @@ prosodyctl mod_roster_command subscribe "$focus_user.$domain" "$focus_user@auth. #================================================= ynh_script_progression --message="Configuring Jitsi-Videobridge..." --weight=1 -public_ipv4="$(curl ip.yunohost.org)" || true +public_ipv4="$(curl --no-progress-meter ip.yunohost.org)" || true private_ipv4="$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')" || true mkdir -p "/etc/$app/videobridge" diff --git a/scripts/restore b/scripts/restore index 9998f39..1915a16 100644 --- a/scripts/restore +++ b/scripts/restore @@ -40,11 +40,11 @@ ynh_restore_file --origin_path="/etc/prosody/conf.avail/$domain.cfg.lua" chmod 644 "/etc/prosody/conf.avail/$domain.cfg.lua" ln -s "/etc/prosody/conf.avail/$domain.cfg.lua" "/etc/prosody/conf.d/$domain.cfg.lua" -echo | prosodyctl cert generate "$domain" +echo | ynh_exec_warn_less prosodyctl cert generate "$domain" ln -sf "/var/lib/prosody/$domain.key" "/etc/prosody/certs/$domain.key" ln -sf "/var/lib/prosody/$domain.crt" "/etc/prosody/certs/$domain.crt" -echo | prosodyctl cert generate "auth.$domain" +echo | ynh_exec_warn_less prosodyctl cert generate "auth.$domain" ln -sf "/var/lib/prosody/auth.$domain.key" "/etc/prosody/certs/auth.$domain.key" ln -sf "/var/lib/prosody/auth.$domain.crt" "/etc/prosody/certs/auth.$domain.crt" ln -sf "/var/lib/prosody/auth.$domain.crt" "/usr/local/share/ca-certificates/auth.$domain.crt" diff --git a/scripts/upgrade b/scripts/upgrade index f19a956..c25873a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,7 +66,7 @@ chmod 644 "/etc/prosody/conf.avail/$domain.cfg.lua" #================================================= ynh_script_progression --message="Configuring Jitsi-Videobridge..." --weight=1 -public_ipv4="$(curl ip.yunohost.org)" || true +public_ipv4="$(curl --no-progress-meter ip.yunohost.org)" || true private_ipv4="$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')" || true ynh_add_config --template="../conf/jitsi-videobridge-callstats-java-sdk.properties" --destination="/etc/$app/videobridge/callstats-java-sdk.properties"