mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-15 03:58:27 +00:00
fix install
This commit is contained in:
parent
8811b6e096
commit
7b80d8b89c
@ -189,8 +189,7 @@ doUpdate() {
|
||||
echo "$bnumber" > "$arkserverroot/arkversion"
|
||||
cd $steamcmdroot
|
||||
echo "$timestamp: update to $bnumber complete" >> "$logdir/update.log"
|
||||
tail -n 1 "$logdir/arkserver.log"
|
||||
|
||||
|
||||
# we restart the server only if it was started before the update
|
||||
if [ $serverWasAlive -eq 1 ]; then
|
||||
doStart
|
||||
|
||||
@ -9,7 +9,7 @@ if [ ! -z $1 ]; then
|
||||
cp arkdaemon /etc/init.d/arkdaemon
|
||||
chmod +x /etc/init.d/arkdaemon
|
||||
# add to startup if the system use sysinit
|
||||
if [ test -x /usr/sbin/update-rc.d ]; then
|
||||
if [ -x /usr/sbin/update-rc.d ]; then
|
||||
update-rc.d arkdaemon defaults
|
||||
echo "Ark server will now start on boot, if you want to remove this feature run the following line"
|
||||
echo "update-rc.d -f arkdaemon remove"
|
||||
@ -21,9 +21,7 @@ if [ ! -z $1 ]; then
|
||||
|
||||
# Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists
|
||||
if [ -f /etc/arkmanager/arkmanager.cfg ]; then
|
||||
mkdir -p /etc/arkmanager
|
||||
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."
|
||||
exit 2
|
||||
else
|
||||
cp -n arkmanager.cfg /etc/arkmanager/arkmanager.cfg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user