File nconf-fix-SUSE-output-dir.patch of Package nconf

diff -Nuar nconf-1.6_patched/config/deployment.ini nconf-1.6_patched2/config/deployment.ini
--- nconf-1.6_patched/config/deployment.ini	2024-03-17 18:27:37.000000000 +0100
+++ nconf-1.6_patched2/config/deployment.ini	2026-01-03 18:00:20.430288831 +0100
@@ -5,34 +5,29 @@
 
 [extract config]
 type        = local
-source_file = "/var/www/nconf/output/NagiosConfig.tgz"
+source_file = "/srv/www/nconf/output/NagiosConfig.tgz"
 target_file = "/tmp/"
 action      = extract
 
 [copy collector config]
 type        = local
 source_file = "/tmp/Default_collector/"
-target_file = "/etc/nems/conf/Default_collector/"
+target_file = "/etc/nagios/conf/Default_collector/"
 action      = copy
 
 [copy global config]
 type        = local
 source_file = "/tmp/global/"
-target_file = "/etc/nems/conf/global/"
+target_file = "/etc/nagios/conf/global/"
 action      = copy
 
-; ** Reload Nagios
-; NEMS 1.0-1.3
-; reload_command = "sudo /etc/init.d/nagios3 reload"
-; NEMS 1.4+
-reload_command = "sudo /bin/systemctl restart nagios"
 
 ;[copy nagios.cfg]
 ;type        = local
 ;source_file = "/tmp/static_cfg/nagios.cfg"
 ;target_file = "/etc/nagios/nagios.cfg"
 ;action      = copy
-;reload_command = "sudo /etc/rc.d/init.d/nagios reload"
+reload_command = "sudo /bin/systemctl restart nagios"
 
 
 
@@ -40,7 +35,7 @@
 
 ;[extract config locally]
 ;type        = local
-;source_file = "/var/www/nconf/output/NagiosConfig.tgz"
+;source_file = "/srv/www/nconf/output/NagiosConfig.tgz"
 ;target_file = "/tmp/"
 ;action      = extract
 
@@ -69,7 +64,7 @@
 
 ;[https upload and extraction on remote host]
 ;type        = http
-;source_file = "/var/www/nconf/output/NagiosConfig.tgz"
+;source_file = "/srv/www/nconf/output/NagiosConfig.tgz"
 ;host        = "https://webserver.mydomain.com/incoming_config.php"
 ;user        = "deployUser"
 ;password    = "deployPass"
@@ -78,7 +73,7 @@
 
 ;[http upload to remote host]
 ;type        = http
-;source_file = "/var/www/nconf/output/NagiosConfig.tgz"
+;source_file = "/srv/www/nconf/output/NagiosConfig.tgz"
 ;host        = "http://webserver.mydomain.com/incoming_config.php"
 ;user        = ""
 ;password    = ""
diff -Nuar nconf-1.6_patched/config/nconf.php nconf-1.6_patched2/config/nconf.php
--- nconf-1.6_patched/config/nconf.php	2024-03-17 18:27:37.000000000 +0100
+++ nconf-1.6_patched2/config/nconf.php	2026-01-03 18:02:34.949571415 +0100
@@ -8,7 +8,7 @@
 #
 
 # The directory where NConf is located
-define('NCONFDIR', '/var/www/html/nconf');
+define('NCONFDIR', '/srv/www/nconf');
 
 # Manual installation:
 # Please replace the  $nconfdir  placeholder with the path to NConf as follows:
@@ -20,7 +20,7 @@
 # This is the path to the Nagios binary. The binary is needed in order to run tests on the generated config. 
 # This path should either point to the original binary (if Nagios is installed on the same host), to a copy of the binary 
 # (copy it to the bin/ folder), or to a symbolic link. Make sure the binary is executable to the webserver user. 
-define('NAGIOS_BIN', '/usr/local/nagios/bin/nagios');
+define('NAGIOS_BIN', '/srv/www/nconf/bin/nagios');
 
 # Check for updates
 # When enabled, NConf will access http://update.nconf.org and will display information about the latest available version.
@@ -32,7 +32,7 @@
 #
 # Defines which design-template (skin) to use
 #
-define('TEMPLATE_DIR', 'nems_nconf');
+define('TEMPLATE_DIR', 'nconf_fresh');
 
 #
 # Debug
openSUSE Build Service is sponsored by