2013-04-07 Junichi Satoh <junichi@rworks.jp>
* pandora_console_install, install.php: Added support for NetBSD. Contributed by Hiroki SHIMIZU. Thanks! git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7938 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
8698407ad9
commit
4ff737663e
|
@ -1,3 +1,9 @@
|
|||
2013-04-07 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* pandora_console_install, install.php: Added support for NetBSD.
|
||||
|
||||
Contributed by Hiroki SHIMIZU. Thanks!
|
||||
|
||||
2013-04-05 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* mobile/operation/agents.php, mobile/operation/tactical.php,
|
||||
|
|
|
@ -498,6 +498,9 @@ function install_step2() {
|
|||
if (PHP_OS == "FreeBSD") {
|
||||
$res += check_exists ("/usr/local/bin/twopi","Graphviz Binary");
|
||||
}
|
||||
else if (PHP_OS == "NetBSD") {
|
||||
$res += check_exists ("/usr/pkg/bin/twopi","Graphviz Binary");
|
||||
}
|
||||
else {
|
||||
$res += check_exists ("/usr/bin/twopi","Graphviz Binary");
|
||||
}
|
||||
|
|
|
@ -51,7 +51,12 @@ get_distro () {
|
|||
then
|
||||
LINUX_DISTRO=FreeBSD
|
||||
else
|
||||
LINUX_DISTRO=GENERIC
|
||||
if [ "$OS_NAME" = "NetBSD" ]
|
||||
then
|
||||
LINUX_DISTRO=NetBSD
|
||||
else
|
||||
LINUX_DISTRO=GENERIC
|
||||
fi
|
||||
fi
|
||||
OS_VERSION=`uname -r`
|
||||
fi
|
||||
|
@ -81,7 +86,12 @@ uninstall () {
|
|||
then
|
||||
PANDORA_HOME="/usr/local/www/data/pandora_console /usr/local/www/apache22/data/pandora_console"
|
||||
else
|
||||
PANDORA_HOME=/srv/www/htdocs/pandora_console
|
||||
if [ "$DISTRO" = "NetBSD" ]
|
||||
then
|
||||
PANDORA_HOME="/usr/pkg/share/httpd/htdocs/pandora_console"
|
||||
else
|
||||
PANDORA_HOME=/srv/www/htdocs/pandora_console
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -123,8 +133,14 @@ install () {
|
|||
fi
|
||||
PANDORA_CONF=$PANDORA_HOME/include/config.php
|
||||
else
|
||||
PANDORA_HOME=/srv/www/htdocs/pandora_console
|
||||
PANDORA_CONF=$PANDORA_HOME/include/config.php
|
||||
if [ "$DISTRO" = "NetBSD" ]
|
||||
then
|
||||
PANDORA_HOME=/usr/pkg/share/httpd/htdocs/pandora_console
|
||||
PANDORA_CONF=$PANDORA_HOME/include/config.php
|
||||
else
|
||||
PANDORA_HOME=/srv/www/htdocs/pandora_console
|
||||
PANDORA_CONF=$PANDORA_HOME/include/config.php
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -190,7 +206,7 @@ install () {
|
|||
chown -R apache:apache $PANDORA_HOME
|
||||
chown -R pandora:apache /var/spool/pandora/
|
||||
else
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
if [ "$DISTRO" = "FreeBSD" -o "$DISTRO" = "NetBSD" ]
|
||||
then
|
||||
chown -R www:www $PANDORA_HOME
|
||||
chown -R pandora:www /var/spool/pandora/
|
||||
|
|
Loading…
Reference in New Issue