2010-09-27 Junichi Satoh <junichi@rworks.jp>

* unix/pandora_agent_installer: Set PANDORA_USER="root" when it is
	not defined.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3294 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2010-09-27 01:51:13 +00:00
parent 5b4b39a1ea
commit d0aec09389
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-09-27 Junichi Satoh <junichi@rworks.jp>
* unix/pandora_agent_installer: Set PANDORA_USER="root" when it is
not defined.
2010-09-20 Ramon Novoa <rnovoa@artica.es>
* unix/pandora_agent, win32/modules/pandora_module.cc: Added

View File

@ -1,3 +1,8 @@
2010-09-27 Junichi Satoh <junichi@rworks.jp>
* pandora_agent_installer: Set PANDORA_USER="root" when it is not
defined.
2010-09-22 Sancho Lerena <slerena@artica.es>
* pandora_agent.spec: Updated RPM spec for SUSE

View File

@ -200,6 +200,8 @@ install () {
mv pandora_agent_daemon.tmp pandora_agent_daemon
rm -f pandora_agent_daemon.tmp 2> /dev/null
chmod 755 pandora_agent_daemon
else
PANDORA_USER="root"
fi
# Create logfile
@ -259,8 +261,8 @@ install () {
chmod 640 $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG
if [ "$OS_NAME" = "FreeBSD" ]
then
chown root:wheel $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG
chown root:daemon $PANDORA_BASE$PANDORA_TEMP
chown $PANDORA_USER:wheel $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG
chown $PANDORA_USER:daemon $PANDORA_BASE$PANDORA_TEMP
chmod -R 770 $PANDORA_BASE$PANDORA_TEMP
chmod 775 $PANDORA_BASE$PANDORA_TEMP
else