mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Merge remote-tracking branch 'upstream/master' into dev#1.1
Conflicts: tools/install.sh
This commit is contained in:
commit
8811b6e096
@ -12,24 +12,25 @@ 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
|
||||||
sh install.sh $1
|
sh install.sh $1 > /dev/null
|
||||||
|
|
||||||
status = $?
|
status=$?
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
# Print messages
|
||||||
|
case "$status" in
|
||||||
|
"0")
|
||||||
|
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
||||||
|
;;
|
||||||
|
|
||||||
if [ $status == 0 ]; then
|
"1")
|
||||||
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
echo "Something where wrong :("
|
||||||
fi
|
;;
|
||||||
|
"2")
|
||||||
if [ $status == 1 ]; 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 "Something where wrong :("
|
echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
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
|
|
||||||
|
|||||||
@ -20,6 +20,7 @@ if [ ! -z $1 ]; then
|
|||||||
chown $1 /var/log/arktools
|
chown $1 /var/log/arktools
|
||||||
|
|
||||||
# Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists
|
# Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists
|
||||||
|
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
|
||||||
mkdir -p /etc/arkmanager
|
mkdir -p /etc/arkmanager
|
||||||
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
|
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
|
||||||
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.";
|
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.";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user