diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index f64720a916..80a9dba174 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,12 @@ +2010-09-23 Miguel de Dios + + * DEBIAN/make_deb_package.sh, pandora_server_installer, pandora_server.spec: + changed the permissions 750 for the dir "data_in" to 770, for to allow the + web api call for add module data for agent. + + TODO: change the pandora_server.redhat.spec the permissions for dir + "data_in". + 2010-09-23 Sergio Martin * lib/PandoraFMS/DB.pm: Improved the db_process_insert diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh index d3b1f55a3b..e6bc508bf8 100644 --- a/pandora_server/DEBIAN/make_deb_package.sh +++ b/pandora_server/DEBIAN/make_deb_package.sh @@ -70,6 +70,7 @@ then mkdir -p temp_package/etc/pandora/ touch temp_package/etc/pandora/pandora_server.conf mkdir -p temp_package/var/spool/pandora/data_in + chmod 770 temp_package/var/spool/pandora/data_in mkdir -p temp_package/var/spool/pandora/data_in/conf mkdir -p temp_package/var/spool/pandora/data_in/md5 chmod 770 temp_package/var/spool/pandora/data_in/md5 diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index d035051ebb..d737563f7c 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -162,6 +162,7 @@ rm -Rf /usr/share/man/man1/tentacle_server.1.gz %defattr(770,pandora,www) /var/spool/pandora +/var/spool/pandora/data_in /var/spool/pandora/data_in/md5 /var/spool/pandora/data_in/collections diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index fb21a9b7c9..78ad3a6d1d 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -198,6 +198,7 @@ perl-TimeDate perl-XML-Simple perl-libwww-perl mysql-client" mkdir $PANDORA_SPOOL 2> /dev/null mkdir $PANDORA_SPOOL/data_in 2> /dev/null + chmod 770 $PANDORA_SPOOL/data_in mkdir $PANDORA_SPOOL/data_in/conf 2> /dev/null chmod 750 $PANDORA_SPOOL/data_in/conf mkdir $PANDORA_SPOOL/data_in/md5 2> /dev/null