diff --git a/scripts/change_url b/scripts/change_url index b286df6..da25297 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -100,6 +100,16 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SPECIFIC MODIFICATIONS +#================================================= + +domain="$new_domain" +ynh_add_config --template="../conf/opensearch.xml.example" --destination="$final_path/opensearch.xml" + +chmod 400 "$final_path/opensearch.xml" +chown $app:$app "$final_path/opensearch.xml" + #================================================= # GENERIC FINALISATION #================================================= diff --git a/scripts/install b/scripts/install index b322054..25c9590 100755 --- a/scripts/install +++ b/scripts/install @@ -105,6 +105,8 @@ ynh_add_config --template="../conf/opensearch.xml.example" --destination="$final chmod 400 "$final_path/config.php" chown $app:$app "$final_path/config.php" +chmod 400 "$final_path/opensearch.xml" +chown $app:$app "$final_path/opensearch.xml" #================================================= # SETUP SYSTEMD