Fixed permissions in default log folders

This commit is contained in:
fermin831 2018-05-31 20:16:09 +02:00
parent e1cba85c6e
commit 9561feaf5c
3 changed files with 5 additions and 2 deletions

View File

@ -82,6 +82,7 @@ then
mkdir -p temp_package/var/spool/pandora/data_in/trans
chmod 770 temp_package/var/spool/pandora/data_in/trans
mkdir -p temp_package/var/log/pandora/
chmod 754 temp_package/var/log/pandora/
mkdir -p temp_package/usr/share/pandora_server/conf/
mkdir -p temp_package/usr/share/tentacle_server/conf/
mkdir -p temp_package/usr/lib/perl5/

View File

@ -176,10 +176,12 @@ exit 0
%{_bindir}/pandora_exec
%{_bindir}/pandora_server
%{_bindir}/tentacle_server
%dir %{_localstatedir}/log/pandora
%dir %{_sysconfdir}/pandora
%dir %{_localstatedir}/spool/pandora
%defattr(-,pandora,root, 754)
%dir %{_localstatedir}/log/pandora
%defattr(600,root,root)
/etc/pandora/pandora_server.conf.new

View File

@ -317,7 +317,7 @@ install () {
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 2770 $DESTDIR$PANDORA_LOG 2> /dev/null
chmod 2774 $DESTDIR$PANDORA_LOG 2> /dev/null
echo "Giving proper permission to /var/spool/pandora"
for group in "www-data" wwwrun www apache