File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -1769,6 +1769,16 @@ runSteamCMDAppUpdate(){
17691769# install of ARK server
17701770#
17711771doInstall() {
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
You can’t perform that action at this time.
0 commit comments