File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 44
55 @php
66 // Must end with '/'
7- $betaServer = env (' BETA_SERVER' , ' https://beta.linkstack.org/' );
8- $updateServer = env (' UPDATE_SERVER' , ' https://update.linkstack.org/' );
9- $versionServer = env (' VERSION_SERVER' , ' https://version.linkstack.org/' );
10- $preUpdateServer = env (' PRE_UPDATE_SERVER' , ' https://pre-update.linkstack.org/' );
11- $repositoryUrl = env (' REPOSITORY_URL' , ' https://github.com/linkstackorg/linkstack/' );
7+ $betaServer = env (' BETA_SERVER' , ' https://beta.linkstack.org/' );
8+ $betaPreUpdateServer = env (' BETA_PRE_UPDATE_SERVER' , ' https://pre-update.linkstack.org/beta/' );
9+ $updateServer = env (' UPDATE_SERVER' , ' https://update.linkstack.org/' );
10+ $versionServer = env (' VERSION_SERVER' , ' https://version.linkstack.org/' );
11+ $preUpdateServer = env (' PRE_UPDATE_SERVER' , ' https://pre-update.linkstack.org/' );
12+ $repositoryUrl = env (' REPOSITORY_URL' , ' https://github.com/linkstackorg/linkstack/' );
13+
14+ $isBeta = env (' JOIN_BETA' , false );
15+
16+ if ($isBeta ) {
17+ $preUpdateServer = $betaPreUpdateServer ;
18+ }
1219
1320 try {
14- $isBeta = env (' JOIN_BETA' , false );
1521 $Vbeta = trim (Http:: timeout (5 )-> get ($betaServer . ' vbeta.json' )-> body ());
1622 $Vbeta_git = trim (Http:: timeout (5 )-> get ($betaServer . ' version.json' )-> body ());
1723 $Vgit = trim (Http:: timeout (5 )-> get ($versionServer )-> body ());
You can’t perform that action at this time.
0 commit comments