Is it possible to use fwconsole in a Post-Restore Hook bash file?
I have two servers. I want to backup/restore the configuration between the two servers. I want to activate only one sip trunk on the second server. For that it is possible to use the command fwconsole trunk and just after fwconsole reload in the Post-Restore Hook bash file?
| doesn’t make sense in this context; it says feed the output from the first command as input to the second.
&& means only run the second if the first succeeded. I suspect it was suggested because ; which means run the second unconditionally, needs to be escaped, because it is otherwise interpreted as starting a comment in the dialplan.