From 25d24b9d0ac6e24fa69d6f80b31d70255139fe7c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 16 Jan 2021 22:36:49 +0100 Subject: [PATCH] remove admin --- manifest.json | 9 --------- scripts/_common.sh | 4 +--- scripts/install | 12 +++++------- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/manifest.json b/manifest.json index f8f2d0e..6fcf136 100644 --- a/manifest.json +++ b/manifest.json @@ -29,15 +29,6 @@ "fr": "Choisissez un nom de domaine pour Coturn" }, "example": "turn.example.com" - }, - { - "name": "admin", - "type": "user", - "ask": { - "en": "Choose an admin user", - "fr": "Choisissez l'administrateur" - }, - "example": "johndoe" } ] } diff --git a/scripts/_common.sh b/scripts/_common.sh index 4eda2a6..b293f7c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -84,9 +84,7 @@ ynh_send_readme_to_admin() { mail_subject="$mail_subject has just been installed!" fi - local mail_message="This is an automated message from your beloved YunoHost server. - -Specific information for the application $app. + local mail_message="Specific information for the application $app. $(if [ -n "$app_message" ] then diff --git a/scripts/install b/scripts/install index eb8452b..971deb1 100644 --- a/scripts/install +++ b/scripts/install @@ -25,8 +25,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" -admin=$YNH_APP_ARG_ADMIN -#is_public=$YNH_APP_ARG_IS_PUBLIC +#admin=$YNH_APP_ARG_ADMIN app=$YNH_APP_INSTANCE_NAME @@ -37,8 +36,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=4 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=admin --value=$admin -#ynh_app_setting_set --app=$app --key=is_public --value=$is_public +#ynh_app_setting_set --app=$app --key=admin --value=$admin #================================================= # CREATE A DH FILE @@ -194,9 +192,9 @@ echo "Coturn server was successfully installed :) For testing we can use Trickle-Ice testing tool. Go to trickle-ice page https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ and enter following details. -STUN or TURN URI : turn:$domain:$turnserver_tls_port -TURN username: turnserver -TURN password: $turnserver_pwd +STUN or TURN URI: $domain:$turnserver_tls_port +TURN username: turnserver +TURN password: $turnserver_pwd If you're facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/coturn_ynh" > mail_to_send