*) skripts are compatible with Sun Solaris 10 now, OpenSolaris has not been tested yet (http://www.yacy-forum.de/viewtopic.php?p=37345#37345)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3910 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
low012 2007-06-17 21:19:00 +00:00
parent 25529290ca
commit 93a898f1f0
2 changed files with 24 additions and 2 deletions

View File

@ -1,7 +1,18 @@
#!/bin/sh
JAVA="`which java`"
LOGFILE="yacy.log"
if [ "`id -u`" -eq 0 ]
#check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary
if [ "`uname`" = "SunOS" ]
then
# only this version of id supports the parameter -u
ID="/usr/xpg4/bin/id"
else
# regular id for any other case (especially Linux and OSX)
ID="id"
fi
if [ "`$ID -u`" -eq 0 ]
then
echo
echo "For security reasons you should not run this script as root!"

View File

@ -1,7 +1,18 @@
#!/bin/sh
JAVA="`which java`"
LOGFILE="yacy.log"
if [ "`id -u`" -eq 0 ]
#check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary
if [ "`uname`" = "SunOS" ]
then
# only this version of id supports the parameter -u
ID="/usr/xpg4/bin/id"
else
# regular id for any other case (especially Linux and OSX)
ID="id"
fi
if [ "`$ID -u`" -eq 0 ]
then
echo
echo "For security reasons you should not run this script as root!"