2009-12-24 Sancho Lerena <slerena@artica.es>

* DEBIAN/postinst: Fixed some perms on postinstall.

        * pandora_console_install: Fixed some perms on postinstall.

        * pandora_console.spec: Removed one blank space :-))



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2239 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-12-24 10:55:36 +00:00
parent 612c34185d
commit df54aa02fa
4 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,11 @@
2009-12-24 Sancho Lerena <slerena@artica.es>
* DEBIAN/postinst: Fixed some perms on postinstall.
* pandora_console_install: Fixed some perms on postinstall.
* pandora_console.spec: Removed one blank space :-))
2009-12-23 Ramon Novoa <rnovoa@artica.es> 2009-12-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php: Fixed avg. calculation in custom reports. * include/functions_db.php: Fixed avg. calculation in custom reports.

View File

@ -5,7 +5,7 @@
#pear install XML_RPC #pear install XML_RPC
echo Change the user and group to /var/www/pandora_console. echo Change the user and group to /var/www/pandora_console.
chmod 755 /var/www/pandora_console -R chmod -R u+rwX,g+rX,g-w,o-rwx /var/www/pandora_console
chgrp www-data /var/www/pandora_console -R chgrp www-data /var/www/pandora_console -R
chown www-data /var/www/pandora_console -R chown www-data /var/www/pandora_console -R

View File

@ -23,7 +23,7 @@ Source0: %{name}-%{version}.tar.gz
URL: http://www.pandorafms.com URL: http://www.pandorafms.com
Group: Productivity/Networking/Web/Utilities Group: Productivity/Networking/Web/Utilities
Packager: Manuel Arostegui <manuel@todo-linux.com> Packager: Manuel Arostegui <manuel@todo-linux.com>
Prefix: /srv/www/htdocs Prefix: /srv/www/htdocs
BuildRoot: %{_tmppath}/%{name} BuildRoot: %{_tmppath}/%{name}
BuildArchitectures: noarch BuildArchitectures: noarch
AutoReq: 0 AutoReq: 0

View File

@ -4,7 +4,7 @@
# Linux Version (generic), for SuSe and Debian/Ubuntu only # Linux Version (generic), for SuSe and Debian/Ubuntu only
# other Linux distros could not work properly without modifications # other Linux distros could not work properly without modifications
# Please see http://www.pandorafms.org # Please see http://www.pandorafms.org
# v3.0 Build 090810 # v3.0 Build 091224
# This code is licensed under GPL 2.0 license. # This code is licensed under GPL 2.0 license.
# ********************************************************************** # **********************************************************************
@ -88,7 +88,8 @@ install () {
# Copying Pandora FMS console # Copying Pandora FMS console
echo "Copying Pandora FMS Console to $PANDORA_HOME.." echo "Copying Pandora FMS Console to $PANDORA_HOME.."
cp -R * $PANDORA_HOME cp -R * $PANDORA_HOME
chmod -R 750 $PANDORA_HOME chmod -R u+rwX,g+rX,g-w,o-rwx $PANDORA_HOME
# Creating 'pandora' user # Creating 'pandora' user
id pandora id pandora
@ -109,12 +110,13 @@ install () {
chown -R www-data:root $PANDORA_HOME chown -R www-data:root $PANDORA_HOME
chown -R pandora:www-data /var/spool/pandora/ chown -R pandora:www-data /var/spool/pandora/
else else
# Assuming SUSE
chown -R wwwrun:root $PANDORA_HOME chown -R wwwrun:root $PANDORA_HOME
chown -R pandora:www /var/spool/pandora/ chown -R pandora:www /var/spool/pandora/
fi fi
echo "Setting secure permissions for Pandora FMS spool dir..." echo "Setting secure permissions for Pandora FMS spool dir..."
chmod -R 770 /var/spool/pandora/ chmod -R u+rwX,g+rwX,o-rwx /var/spool/pandora/
echo "Done." echo "Done."
echo " " echo " "