add a fallback for serverid
This commit is contained in:
parent
d9e8027f7d
commit
2b419b7c65
1 changed files with 2 additions and 1 deletions
3
start.sh
3
start.sh
|
|
@ -5,7 +5,8 @@ umask 027
|
|||
|
||||
NEXTCLOUD_OVERWRITE_PROTOCOL="${NEXTCLOUD_OVERWRITE_PROTOCOL:-https}"
|
||||
# StatefulSet pod names are "<statefulset-name>-<ordinal>"; use the ordinal as the server id
|
||||
NC_SERVERID="${POD_NAME##*-}"
|
||||
NC_SERVERID="${POD_NAME:+${POD_NAME##*-}}"
|
||||
NC_SERVERID="${NC_SERVERID:-0}"
|
||||
export NC_SERVERID
|
||||
|
||||
setup_notify_push() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue