From b7e16f813971dfcba932ab2c8608d2b00976e99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Martin?= Date: Thu, 7 Mar 2019 10:16:56 +0100 Subject: [PATCH 1/3] change server name in notify --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index 5bc37bf..cc61767 100755 --- a/scripts/install +++ b/scripts/install @@ -205,6 +205,11 @@ exec_occ config:system:get logout_url >/dev/null 2>&1 \ //-YunoHost- " >> "${final_path}/config/config.php" +#================================================= +# CHANGE HOSTNAME FOR ACTIVITY NOTIFICATIONS +#================================================= +ynh_replace_string "'overwrite.cli.url' => 'http://localhost'," "'overwrite.cli.url' => 'https://${domain}'," "${final_path}/config/config.php" + #================================================= # REMOVE THE TEMPORARY ADMIN AND SET THE TRUE ONE #================================================= From 46c496c6de9a13cc5f1cefbb9bad0197d71db13e Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 7 Mar 2019 11:51:14 +0100 Subject: [PATCH 2/3] Update install --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index cc61767..a2fc1d9 100755 --- a/scripts/install +++ b/scripts/install @@ -208,6 +208,7 @@ exec_occ config:system:get logout_url >/dev/null 2>&1 \ #================================================= # CHANGE HOSTNAME FOR ACTIVITY NOTIFICATIONS #================================================= + ynh_replace_string "'overwrite.cli.url' => 'http://localhost'," "'overwrite.cli.url' => 'https://${domain}'," "${final_path}/config/config.php" #================================================= From ee0d5457a19d37b15f0640ba27123b4ebb54e9c3 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 7 Mar 2019 11:55:02 +0100 Subject: [PATCH 3/3] Modify upgrade script as well --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index d58f4b0..c56fc18 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -265,6 +265,12 @@ exec_occ config:system:get logout_url >/dev/null 2>&1 \ //-YunoHost- " >> "${final_path}/config/config.php" +#================================================= +# CHANGE HOSTNAME FOR ACTIVITY NOTIFICATIONS +#================================================= + +ynh_replace_string "'overwrite.cli.url' => 'http://localhost'," "'overwrite.cli.url' => 'https://${domain}'," "${final_path}/config/config.php" + #================================================= # MOUNT HOME FOLDERS AS EXTERNAL STORAGE #=================================================