mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 00:08:28 +00:00
install and netinstall can now update existing installation
This commit is contained in:
parent
753a86eecb
commit
fb2110eb24
@ -12,13 +12,24 @@ tar -zxvf master.tar.gz
|
|||||||
# Install ARK Server Tools
|
# Install ARK Server Tools
|
||||||
cd ark-server-tools-master/tools
|
cd ark-server-tools-master/tools
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
if [[ -n $(sh install.sh $1) ]]; then
|
sh install.sh $1
|
||||||
echo "Something where wrong :("
|
|
||||||
else
|
status = $?
|
||||||
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove the installation files
|
# Remove the installation files
|
||||||
rm -f master.tar.gz
|
rm -f master.tar.gz
|
||||||
rm -rf /tmp/ark-server-tools-master
|
rm -rf /tmp/ark-server-tools-master
|
||||||
|
|
||||||
|
|
||||||
|
if [ $status == 0 ]; then
|
||||||
|
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $status == 1 ]; then
|
||||||
|
echo "Something where wrong :("
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $status == 2 ]; then
|
||||||
|
echo "WARNING: A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it."
|
||||||
|
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
||||||
|
fi
|
||||||
|
|||||||
@ -13,14 +13,20 @@ if [ ! -z $1 ]; then
|
|||||||
mkdir -p /var/log/arktools
|
mkdir -p /var/log/arktools
|
||||||
chown $1 /var/log/arktools
|
chown $1 /var/log/arktools
|
||||||
|
|
||||||
# Copy arkmanager.cfg inside linux configuation folder
|
# Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists
|
||||||
mkdir -p /etc/arkmanager
|
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
|
||||||
mv arkmanager.cfg /etc/arkmanager/arkmanager.cfg
|
mkdir -p /etc/arkmanager
|
||||||
chown $1 /etc/arkmanager/arkmanager.cfg
|
cp -n arkmanager.cfg /etc/arkmanager/arkmanager.cfg
|
||||||
|
chown $1 /etc/arkmanager/arkmanager.cfg
|
||||||
|
else
|
||||||
|
echo "A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it.";
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "You must specify your system steam user who own steamcmd directory to install ARK Tools."
|
echo "You must specify your system steam user who own steamcmd directory to install ARK Tools."
|
||||||
echo "Usage: ./install.sh steam"
|
echo "Usage: ./install.sh steam"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user