diff --git a/scripts/install b/scripts/install index 5bc37bf..a2fc1d9 100755 --- a/scripts/install +++ b/scripts/install @@ -205,6 +205,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" + #================================================= # REMOVE THE TEMPORARY ADMIN AND SET THE TRUE ONE #================================================= 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 #=================================================