Tentacle config file is readable to all users in all packages
This commit is contained in:
parent
4bc10e503b
commit
b6bc835e41
|
@ -83,7 +83,7 @@ fi
|
|||
if [ ! -e /etc/tentacle/tentacle_server.conf ]
|
||||
then
|
||||
cp /usr/share/tentacle_server/conf/tentacle_server.conf.new /etc/tentacle/tentacle_server.conf
|
||||
chmod 600 /etc/tentacle/tentacle_server.conf
|
||||
chmod 664 /etc/tentacle/tentacle_server.conf
|
||||
else
|
||||
cp /usr/share/tentacle_server/conf/tentacle_server.conf.new /etc/tentacle/tentacle_server.conf.new
|
||||
echo "Skipping creation of tentacle_server.conf: there is already one."
|
||||
|
|
|
@ -182,6 +182,8 @@ exit 0
|
|||
|
||||
%defattr(600,root,root)
|
||||
/etc/pandora/pandora_server.conf.new
|
||||
|
||||
%defattr(664,root,root)
|
||||
/etc/tentacle/tentacle_server.conf.new
|
||||
|
||||
%defattr(-,pandora,apache,2770)
|
||||
|
|
|
@ -201,6 +201,8 @@ rm -Rf /usr/share/man/man1/tentacle_server.1.gz
|
|||
|
||||
%defattr(-,pandora,root,750)
|
||||
/etc/pandora
|
||||
|
||||
%defattr(-,pandora,root,754)
|
||||
/etc/tentacle
|
||||
|
||||
%defattr(644,pandora,root)
|
||||
|
|
|
@ -379,7 +379,7 @@ install () {
|
|||
else
|
||||
echo cp $TENTACLE_CFG_FILE_DIST $DESTDIR$TENTACLE_CFG_FILE
|
||||
cp $TENTACLE_CFG_FILE_DIST $DESTDIR$TENTACLE_CFG_FILE
|
||||
chmod 770 $DESTDIR$TENTACLE_CFG_FILE
|
||||
chmod 774 $DESTDIR$TENTACLE_CFG_FILE
|
||||
fi
|
||||
|
||||
echo "Installing Tentacle Server manual"
|
||||
|
|
|
@ -109,13 +109,6 @@ case "$1" in
|
|||
rc_exit # running start on a service already running
|
||||
fi
|
||||
|
||||
# Try to change the privileges of configuration file
|
||||
chown $TENTACLE_USER $TENTACLE_CONFIG_FILE > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Cannot change the owner of $TENTACLE_CONFIG_FILE configuration file to $TENTACLE_USER user."
|
||||
rc_exit
|
||||
fi
|
||||
|
||||
# Init the tentacle process
|
||||
sudo -u $TENTACLE_USER ${TENTACLE_PATH}$TENTACLE_DAEMON $TENTACLE_OPTS
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in New Issue