Fixed setgid (rpm & pandora_server_installer)
This commit is contained in:
parent
b0bdcbb3e9
commit
7b9ad0cb62
|
@ -175,7 +175,7 @@ exit 0
|
|||
%defattr(600,root,root)
|
||||
/etc/pandora/pandora_server.conf.new
|
||||
|
||||
%defattr(-,pandora,apache,770)
|
||||
%defattr(-,pandora,apache,2770)
|
||||
%{_localstatedir}/spool/pandora
|
||||
%{_localstatedir}/spool/pandora/data_in
|
||||
%{_localstatedir}/spool/pandora/data_in/md5
|
||||
|
|
|
@ -171,7 +171,7 @@ rm -Rf /usr/share/man/man1/tentacle_server.1.gz
|
|||
%{prefix}/pandora_server
|
||||
/var/log/pandora
|
||||
|
||||
%defattr(-,pandora,www,770)
|
||||
%defattr(-,pandora,www,2770)
|
||||
/var/spool/pandora
|
||||
/var/spool/pandora/data_in
|
||||
/var/spool/pandora/data_in/md5
|
||||
|
|
|
@ -297,20 +297,20 @@ install () {
|
|||
fi
|
||||
|
||||
mkdir -p $DESTDIR$PANDORA_SPOOL/data_in 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in
|
||||
mkdir $DESTDIR$PANDORA_SPOOL/data_in/conf 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in/conf
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in/conf
|
||||
mkdir $DESTDIR$PANDORA_SPOOL/data_in/md5 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in/md5
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in/md5
|
||||
mkdir $DESTDIR$PANDORA_SPOOL/data_in/collections 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in/collections
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in/collections
|
||||
mkdir $DESTDIR$PANDORA_SPOOL/data_in/netflow 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in/netflow
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in/netflow
|
||||
mkdir $DESTDIR$PANDORA_SPOOL/data_in/trans 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_SPOOL/data_in/trans
|
||||
chmod 2770 $DESTDIR$PANDORA_SPOOL/data_in/trans
|
||||
mkdir -p $DESTDIR$PANDORA_LOG 2> /dev/null
|
||||
chown -R pandora $DESTDIR$PANDORA_LOG 2> /dev/null
|
||||
chmod 770 $DESTDIR$PANDORA_LOG 2> /dev/null
|
||||
chmod 2770 $DESTDIR$PANDORA_LOG 2> /dev/null
|
||||
|
||||
echo "Giving proper permission to /var/spool/pandora"
|
||||
for group in "www-data" wwwrun www apache
|
||||
|
|
Loading…
Reference in New Issue