Automatic server installer for ubuntu servers
#13

I definitely have no reason to move or do anything to my script or server. Who cares. Because I dont

So stop posting useless garbage? Seems like a blunt solution to all of your problems. Don't release garbage that works the wrong way and only 1/10 times. You're destroying peoples experiences while using the garbage that you release.

 

It works fine on Ubuntu.  User error I suppose?

 

Btw I'm running mine on Ubuntu so you can't say I haven't tried it.

It's not about working it working or not. It's about shell script working properly. I presume you know nothing about Linux just as Pwesty because you would understand that single statement let alone agree with me on it. To put it in noob terms Micheal the script is going to continue to execute even if there was an error. So you can kind of grasp the severity of my words.

 

As per usual Warmonger needs to pick up the slack from teh noobies. Here's a snippet of my shell script that I may release later on. Which is the proper way of writing a shell script.

 

By the way Pwesty, If you use any my code (I'm sure you will) at least throw me credits.

#!/bin/bash

printf "\nProper LastChaos EP3 Setup Shell Script By Warmonger\n\n"
sleep 3

##################################################
# Check For Previous Installations
##################################################

if [ -d "lastchaos" ]; then
while true; do
read -p "Previous Files Found, Delete Them? " yn
case $yn in
[Yy]* ) rm -r lastchaos; sleep 1; break;;
[Nn]* ) exit;;
    * ) echo "Please Answer Yes Or No";;
esac
done
fi

##################################################
# Create The Directory For Server Files
##################################################

printf "Creating LastChaos Directory..."
mkdir lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Navigate Into Directory
##################################################

printf "Navigate Into LastChaos Directory..."
cd lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Download Server Files
##################################################

printf "Downloading Server Files..."
wget -t 1 --timeout=10 http://www.lcdownloads.com/garbage/EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Extract Server Files
##################################################

printf "Extracting Server Files..."
unzip EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

...
Is this trusted im going to start running a server i want to know if its anti hacking on too

I would wait until he fixes the script using my advice. I wouldn't recommend anyone to use this script as it is because it is prone to problems.



Messages In This Thread
[No subject] - by pwesty - 11-26-2014, 01:11 AM
[No subject] - by Kekers - 11-26-2014, 04:08 PM
[No subject] - by bignoob77 - 11-26-2014, 04:32 PM
[No subject] - by Kekers - 11-26-2014, 05:32 PM
[No subject] - by pwesty - 11-26-2014, 06:29 PM
[No subject] - by Kekers - 11-26-2014, 06:55 PM
[No subject] - by jeremie - 11-26-2014, 07:07 PM
[No subject] - by Kekers - 11-26-2014, 07:08 PM
[No subject] - by pwesty - 11-26-2014, 07:30 PM
[No subject] - by Walletman987 - 11-26-2014, 07:36 PM
[No subject] - by Walletman987 - 11-26-2014, 07:40 PM
[No subject] - by Stratos - 11-26-2014, 08:21 PM
[No subject] - by Kekers - 11-26-2014, 08:43 PM
[No subject] - by Dimensions - 11-26-2014, 10:56 PM
[No subject] - by Dimensions - 11-26-2014, 10:56 PM
[No subject] - by ☣ WARFACE ☣ - 11-26-2014, 11:00 PM
[No subject] - by pwesty - 11-27-2014, 01:51 AM
[No subject] - by Kekers - 11-27-2014, 02:49 AM
[No subject] - by pwesty - 11-27-2014, 03:48 AM
[No subject] - by Kekers - 11-27-2014, 04:46 AM
[No subject] - by Kekers - 11-27-2014, 04:35 PM
[No subject] - by pwesty - 11-27-2014, 10:36 PM
[No subject] - by Kekers - 11-28-2014, 01:07 AM
[No subject] - by Walletman987 - 11-28-2014, 04:29 AM
[No subject] - by Arnii - 11-28-2014, 08:15 AM
[No subject] - by Wizatek - 11-28-2014, 09:44 AM
[No subject] - by Kekers - 11-28-2014, 10:17 AM
[No subject] - by Walletman987 - 11-28-2014, 02:17 PM
[No subject] - by Kekers - 11-28-2014, 06:13 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)