mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-25 07:48:28 +00:00
Merge pull request #116 from FezVrasta/master
Merge hotfixes from master into 1.3-dev
This commit is contained in:
commit
3ca424f63b
@ -20,6 +20,7 @@ iptables -I INPUT -p udp --dport 27016 -j ACCEPT
|
|||||||
iptables -I INPUT -p tcp --dport 27016 -j ACCEPT
|
iptables -I INPUT -p tcp --dport 27016 -j ACCEPT
|
||||||
iptables -I INPUT -p udp --dport 7778 -j ACCEPT
|
iptables -I INPUT -p udp --dport 7778 -j ACCEPT
|
||||||
iptables -I INPUT -p tcp --dport 7778 -j ACCEPT
|
iptables -I INPUT -p tcp --dport 7778 -j ACCEPT
|
||||||
|
iptables -I INPUT -p tcp --dport 32330 -j ACCEPT
|
||||||
```
|
```
|
||||||
|
|
||||||
NB: Change the ports according to the ones set in your `arkmanager.cfg` file.
|
NB: Change the ports according to the ones set in your `arkmanager.cfg` file.
|
||||||
|
|||||||
@ -74,10 +74,6 @@ checkConfig() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Environment configuration
|
# Environment configuration
|
||||||
# arkserverroot
|
|
||||||
if [ ! -w `echo "$arkserverroot" | sed 's:/[^/]*$::'` ] ; then
|
|
||||||
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tYou have not rights to write in the defined ARK server root directory"
|
|
||||||
fi
|
|
||||||
# arkserverexec
|
# arkserverexec
|
||||||
if [ ! -f "$arkserverroot/$arkserverexec" ] ; then
|
if [ ! -f "$arkserverroot/$arkserverexec" ] ; then
|
||||||
echo -e "[" "$YELLOW" "WARN" "$NORMAL" "]" "\tYour ARK server exec could not be found."
|
echo -e "[" "$YELLOW" "WARN" "$NORMAL" "]" "\tYour ARK server exec could not be found."
|
||||||
@ -348,7 +344,16 @@ doStop() {
|
|||||||
# install of ARK server
|
# install of ARK server
|
||||||
#
|
#
|
||||||
doInstall() {
|
doInstall() {
|
||||||
mkdir -p "$arkserverroot"
|
# Check if arkserverroot already exists
|
||||||
|
if [ ! -d "$arkserverroot" ]; then
|
||||||
|
# If it does not exist, try create it
|
||||||
|
echo -e "Creating the ARK server root directory ($arkserverroot)"
|
||||||
|
mkdir -p "$arkserverroot"
|
||||||
|
if [ ! $? ] ; then
|
||||||
|
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tFailed to create the defined ARK server root directory ($arkserverroot)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
cd "$steamcmdroot"
|
cd "$steamcmdroot"
|
||||||
# install the server
|
# install the server
|
||||||
@ -416,10 +421,10 @@ doBackup(){
|
|||||||
local datestamp=`date +"%Y-%m-%d_%H.%M.%S"`
|
local datestamp=`date +"%Y-%m-%d_%H.%M.%S"`
|
||||||
local backupdir="${arkbackupdir}/${datestamp}"
|
local backupdir="${arkbackupdir}/${datestamp}"
|
||||||
mkdir -p "$backupdir"
|
mkdir -p "$backupdir"
|
||||||
cp "${arkserverroot}/ShooterGame/Saved/SavedArks/${serverMap}.ark" "${backupdir}/${serverMap}.ark"
|
cp -p "${arkserverroot}/ShooterGame/Saved/SavedArks/${serverMap}.ark" "${backupdir}/${serverMap}.ark"
|
||||||
cp "${arkserverroot}/ShooterGame/Saved/SavedArks/"*.arkprofile "${backupdir}"
|
cp -p "${arkserverroot}/ShooterGame/Saved/SavedArks/"*.arkprofile "${backupdir}"
|
||||||
cp "${arkserverroot}/ShooterGame/Saved/SavedArks/"*.arktribe "${backupdir}"
|
cp -p "${arkserverroot}/ShooterGame/Saved/SavedArks/"*.arktribe "${backupdir}"
|
||||||
cp "${arkserverroot}/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini" "${backupdir}"
|
cp -p "${arkserverroot}/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini" "${backupdir}"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user