aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/sshdcond/sshdcond.inc13
-rw-r--r--pkg_config.10.xml2
2 files changed, 9 insertions, 6 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index 756f1556..12af3551 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -117,12 +117,15 @@ function sshdcond_custom_php_write_config() {
function sshdcond_sync_on_changes() {
global $config, $g;
- if (is_array($config['installedpackages']['sshdcondsync'])) {
- if (!$config['installedpackages']['sshdcondsync']['config'][0]['synconchanges']) {
- return;
- }
+ /* Basically, this package was never configured */
+ if (!is_array($config['installedpackages']['sshdcondsync'])) {
+ return;
}
-
+ /* Package is configured but XMLRPC sync is disabled */
+ if (!isset($config['installedpackages']['sshdcondsync']['config'][0]['synconchanges'])) {
+ return;
+ }
+ /* Do XMLRPC sync */
log_error("[sshdcond] xmlrpc sync is starting.");
foreach ($config['installedpackages']['sshdcondsync']['config'] as $rs) {
foreach($rs['row'] as $sh) {
diff --git a/pkg_config.10.xml b/pkg_config.10.xml
index 94560f43..4c59a2e5 100644
--- a/pkg_config.10.xml
+++ b/pkg_config.10.xml
@@ -1336,7 +1336,7 @@
]]>
</descr>
<category>Enhancements</category>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<status>Beta</status>
<required_version>2.2</required_version>
<config_file>https://packages.pfsense.org/packages/config/sshdcond/sshdcond.xml</config_file>