diff --git a/README.md b/README.md index b25da48..abc1729 100644 --- a/README.md +++ b/README.md @@ -39,17 +39,12 @@ After these edits, you'll need to restart your bash session or reconnect to your To install ARK Server Tools run these commands: ```sh -cd ~ -wget https://github.com/FezVrasta/ark-server-tools/archive/master.tar.gz -tar -zxvf master.tar.gz -cd ark-server-tools-master/tools -chmod u+x install.sh -sudo sh install.sh steam +curl -s https://raw.githubusercontent.com/FezVrasta/ark-server-tools/master/netinstall.sh | bash -s steam ``` -NB: You may want to change the `install.sh` parameter to fit your steam user if different from `steam`. +NB: You may want to change the `bash -s` parameter to fit your steam user if different from `steam`. -This will copy the `arkmanager` and the `arkdaemon` to the proper directories and will create an empty log directory in `/var/log` for ARK Server Tools. +This will copy the `arkmanager` and the `arkdaemon` to the proper directories and will create an empty log directory in `/var/log` for ARK Server Tools. ## Configure ARK Server diff --git a/netinstall.sh b/netinstall.sh index 0cc0720..b5d4a43 100644 --- a/netinstall.sh +++ b/netinstall.sh @@ -12,10 +12,13 @@ tar -zxvf master.tar.gz # Install ARK Server Tools cd ark-server-tools-master/tools chmod +x install.sh -sh install.sh $1 +if [[ -n $(sh install.sh $1) ]]; then + echo "Something where wrong :(" +else + echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!" +fi # Remove the installation files rm -f master.tar.gz rm -rf /tmp/ark-server-tools-master -echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"