removed unnessecary sudo
This commit is contained in:
parent
7aef16ee93
commit
94ffab2b59
@ -29,18 +29,18 @@ fi
|
|||||||
if [ "$1" = "-f" ]
|
if [ "$1" = "-f" ]
|
||||||
then
|
then
|
||||||
# Gimme the console
|
# Gimme the console
|
||||||
sudo screen -xr $server
|
screen -xr $server
|
||||||
# Now gimme my suxesvul eksid koud...
|
# Now gimme my suxesvul eksid koud...
|
||||||
true
|
true
|
||||||
elif [ "$1" = "-ff" ]
|
elif [ "$1" = "-ff" ]
|
||||||
then
|
then
|
||||||
# Hand me the console over
|
# Hand me the console over
|
||||||
sudo screen -dr $server
|
screen -dr $server
|
||||||
# Now gimme my suxesvul eksid koud...
|
# Now gimme my suxesvul eksid koud...
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
# Gimme the console, plz...
|
# Gimme the console, plz...
|
||||||
sudo screen -rq $server
|
screen -rq $server
|
||||||
if [ $? -gt 0 ]
|
if [ $? -gt 0 ]
|
||||||
then
|
then
|
||||||
# If the console is attached elsewhere, say it
|
# If the console is attached elsewhere, say it
|
||||||
|
@ -24,7 +24,7 @@ then
|
|||||||
cd /media/games/$server/
|
cd /media/games/$server/
|
||||||
# start the screen with Socket name & title "bukkit"
|
# start the screen with Socket name & title "bukkit"
|
||||||
# and run the start script
|
# and run the start script
|
||||||
sudo screen -dmS $server -t $server ./start.sh
|
screen -dmS $server -t $server ./start.sh
|
||||||
# Now gimme my suxesvul eksit koud...
|
# Now gimme my suxesvul eksit koud...
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
|
@ -17,7 +17,7 @@ fi
|
|||||||
|
|
||||||
# Is there a window with name "bukkit" already running in screen?
|
# Is there a window with name "bukkit" already running in screen?
|
||||||
# We don't need your fukcing text, ew...
|
# We don't need your fukcing text, ew...
|
||||||
sudo screen -ls $server > /dev/null
|
screen -ls $server > /dev/null
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
# If the screen window is indeed running, shout it in my
|
# If the screen window is indeed running, shout it in my
|
||||||
|
Loading…
Reference in New Issue
Block a user