Show contents of the CP payload in message_t stringification
[strongswan.git] / src / manager / make-debug
1 #!/bin/bash
2 #
3 # Debug helper script, launches manager statically. Use Apache config:
4 #   FastCgiIpcDir /var/lib/apache2/fastcgi
5 #   FastCgiExternalServer /var/www/manager-dbg -socket manager
6
7 make CFLAGS="-g -O2 -DFCGI_SOCKET=\\\"/var/lib/apache2/fastcgi/manager\\\"" || exit
8 sudo make install || exit
9
10 if [ "$1" == "dbg" ]
11 then
12         sudo -u www-data gdb -q /usr/local/libexec/ipsec/manager.fcgi
13 else
14         sudo -u www-data /usr/local/libexec/ipsec/manager.fcgi
15 fi