Skip to content

Commit 31f76cc

Browse files
committed
refactor: we need to load some of bitnami internal libraries early to call ensure_user_exists
1 parent 7bb3ce5 commit 31f76cc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker-entrypoint.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ fi
1616

1717
export ETCD_ADVERTISE_CLIENT_URLS="http://${AKASH_INGRESS_HOST}:${AKASH_EXTERNAL_PORT_2379}"
1818

19-
source /opt/bitnami/scripts/etcd-env.sh
19+
# Load libraries
20+
. /opt/bitnami/scripts/libos.sh
21+
. /opt/bitnami/scripts/libetcd.sh
22+
23+
# Load etcd environment settings
24+
. /opt/bitnami/scripts/etcd-env.sh
25+
26+
am_i_root && ensure_user_exists "$ETCD_DAEMON_USER" --group "$ETCD_DAEMON_GROUP"
2027

2128
chown -R $ETCD_DAEMON_USER $ETCD_VOLUME_DIR
2229

0 commit comments

Comments
 (0)