diff --git a/conf/loolwsd.xml b/conf/loolwsd.xml index 3fb8166..d1c74b1 100644 --- a/conf/loolwsd.xml +++ b/conf/loolwsd.xml @@ -78,7 +78,7 @@ - __NEXTCLOUDDOMAIN__ + __NEXTCLOUD_DOMAIN__ 10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} 172\.1[6789]\.[0-9]{1,3}\.[0-9]{1,3} 172\.2[0-9]\.[0-9]{1,3}\.[0-9]{1,3} @@ -88,7 +88,7 @@ 0 - __NEXTCLOUDDOMAIN__ + __NEXTCLOUD_DOMAIN__ diff --git a/scripts/install b/scripts/install index ba15909..c9a1b84 100644 --- a/scripts/install +++ b/scripts/install @@ -100,7 +100,7 @@ config="/etc/loolwsd/loolwsd.xml" cp -f ../conf/loolwsd.xml $config -ynh_replace_string --match_string="__NEXTCLOUDDOMAIN__" --replace_string="$nextcloud_domain" --target_file="$config" +ynh_replace_string --match_string="__NEXTCLOUD_DOMAIN__" --replace_string="$nextcloud_domain" --target_file="$config" ynh_replace_string --match_string="__PASSWORD__" --replace_string="$password" --target_file="$config" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f531937..e96c8fb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -90,9 +90,9 @@ config="/etc/loolwsd/loolwsd.xml" ynh_backup_if_checksum_is_different --file="$config" -cp -a ../conf/loolwsd.xml $config +cp -f ../conf/loolwsd.xml $config -ynh_replace_string "__NEXTCLOUDDOMAIN__" "$nextcloud_domain" "$config" +ynh_replace_string "__NEXTCLOUD_DOMAIN__" "$nextcloud_domain" "$config" ynh_replace_string "__PASSWORD__" "$password" "$config" # Recalculate and store the checksum of the file for the next upgrade.