This way a script can signal "not found".
The naptr-eduroam.sh and radsec-dynsrv.sh scripts are changed to
behave like this.
Closes RADSECPROXY-22.
}
if (status) {
- debug(DBG_INFO, "dynamicconfig: command exited with status %d", WEXITSTATUS(status));
- goto errexit;
+ if (WEXITSTATUS(status) == 10) {
+ debug(DBG_INFO, "dynamicconfig: command signals empty config");
+ }
+ else {
+ debug(DBG_INFO, "dynamicconfig: command exited with status %d",
+ WEXITSTATUS(status));
+ goto errexit;
+ }
}
if (ok)
exit 0
fi
-exit 0
+exit 10 # No server found.
exit 0
fi
-exit 0
+exit 10 # No server found.