mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) 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:
parent
25529290ca
commit
93a898f1f0
13
startYACY.sh
13
startYACY.sh
|
@ -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!"
|
||||
|
|
|
@ -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!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user