Skip to content

Commit 9745383

Browse files
committed
Add --beta option to arkmanager install
1 parent 8817e90 commit 9745383

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ instances.
266266
Downloads and installs (or validates an existing install) of
267267
the ARK server
268268

269+
`--beta=<betaname>`;;
270+
Select the beta to install
271+
272+
`--betapassword=<password>`;;
273+
Use password to unlock beta (for password-locked betas).
274+
269275
`update`::
270276
Updates an install of the ARK server (or installs it if it's
271277
not already installed)

tools/arkmanager

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,16 @@ runSteamCMDAppUpdate(){
17691769
# install of ARK server
17701770
#
17711771
doInstall() {
1772+
local appbeta=
1773+
local appbetapass=
1774+
1775+
for arg in "$@"; do
1776+
case "$arg" in
1777+
--beta=*) appbeta="${arg#--beta=}"; ;;
1778+
--betapassword=*) appbetapass="${arg#--betapassword=}"; ;;
1779+
esac
1780+
done
1781+
17721782
# Check if arkserverroot already exists
17731783
if [ ! -d "$arkserverroot" ]; then
17741784
# If it does not exist, try create it
@@ -1786,7 +1796,7 @@ doInstall() {
17861796
echo -n "Installing ARK server"
17871797
# install the server
17881798
doDownloadSteamCMD
1789-
runSteamCMDAppUpdate "$arkserverroot" validate
1799+
runSteamCMDAppUpdate "$arkserverroot" ${appbeta:+-beta} $appbeta ${appbetapass:+-betapassword} $appbetapass validate
17901800
retval=$?
17911801
17921802
if [ $retval -eq 5 ]; then

0 commit comments

Comments
 (0)