2009-10-29 12:36:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2009-10-30 12:42:51 +01:00
|
|
|
echo Change the user and group to /var/www/pandora_console.
|
2009-12-24 11:55:36 +01:00
|
|
|
chmod -R u+rwX,g+rX,g-w,o-rwx /var/www/pandora_console
|
2009-10-30 12:42:51 +01:00
|
|
|
chgrp www-data /var/www/pandora_console -R
|
|
|
|
chown www-data /var/www/pandora_console -R
|
2016-08-31 18:07:17 +02:00
|
|
|
if [ -d /var/www/html ]; then mv /var/www/pandora_console /var/www/html/; fi
|
|
|
|
|
2016-03-27 22:23:24 +02:00
|
|
|
if [ -f /etc/init.d/apache2 ]; then
|
2009-10-30 12:42:51 +01:00
|
|
|
echo Restart the apache.
|
|
|
|
/etc/init.d/apache2 restart
|
2016-03-27 22:23:24 +02:00
|
|
|
fi
|
2009-10-29 12:40:23 +01:00
|
|
|
|
2019-11-05 12:01:58 +01:00
|
|
|
# Install pandora_websocket_engine service.
|
|
|
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
2019-11-08 09:49:09 +01:00
|
|
|
chmod +x /etc/init.d/pandora_websocket_engine
|
2019-11-05 12:01:58 +01:00
|
|
|
|
|
|
|
echo "You can now start the Pandora FMS Websocket service by executing"
|
|
|
|
echo " /etc/init.d/pandora_websocket_engine start"
|
|
|
|
|
2009-12-24 11:55:36 +01:00
|
|
|
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|