X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/d4b17c308460f11a03fde0a2cb4f34ebb8743601..b284e1e06c9135525c411dd23888acdff314a596:/TestXfhem/bin/install-sysal-stub?ds=inline diff --git a/TestXfhem/bin/install-sysal-stub b/TestXfhem/bin/install-sysal-stub new file mode 100755 index 0000000..26f6b0d --- /dev/null +++ b/TestXfhem/bin/install-sysal-stub @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +# test if already installed +if [ -e /etc/apache2/sites-enabled/sysal_stub.conf ] +then + exit +fi + +cwd=$(pwd) +# write apache conf +echo "# Apache conf for sysal stub +Alias /sysal/rest/AlarmInterface/RemoteWatchdog $cwd/bin/sysal-stub.pl + + Require all granted + Options +ExecCGI + AddHandler cgi-script .pl + +" > /etc/apache2/sites-available/sysal_stub.conf +a2ensite sysal_stub + +systemctl restart apache2 +