@SnailsAttack wrote:
While attempting to run a galactic science server, I get an error that says
"The file “ServerStart-Other.command” could not be executed because you do not have appropriate access privileges."
This does not make sense, however, as it should definitely have full permissions to run.
!/bin/sh
cd "$(dirname "$0")"
Read config
. ./config.txt
makes things easier if script needs debugging
if [ x$FTB_VERBOSE = xyes ]; then
set -x
ficleaner code
eula_false() {
grep -q 'eula=false' eula.txt
return $?
}run install script if MC server or launchwrapper s missing
if [ ! -f minecraft_server.1.7.10.jar ]; then
echo "Running installer!"
java -jar $forge-installer.jar --installServer
ficheck if there is eula.txt and if it has correct content
if [ -f eula.txt ] && eula_false ; then
printf "\033c"
echo "Make sure to read eula.txt before playing!"
echo "To exit press "
read ignored
exit
fiinform user if eula.txt not found
if [ ! -f eula.txt ]; then
printf "\033c"
echo "Missing eula.txt. Startup will fail and eula.txt will be created"
echo "Make sure to read eula.txt before playing!"
echo "To continue press "
read ignored
fiecho "Starting server"
java -server -Xms$minMem -Xmx$maxMem -XX:PermSize=256m -d64 -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar $forge-universal.jar nogui
echo "Server process finished"
Posts: 1
Participants: 1