We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3cf30d commit 01b5ecdCopy full SHA for 01b5ecd
src/base-image/startup.sh
@@ -1,22 +1,6 @@
1
#!/bin/bash
2
source /opt/bash-utils/logger.sh
3
4
-function wait_for_process () {
5
- local max_time_wait=600
6
- local process_name="$1"
7
- local waited_sec=0
8
- while ! pgrep "$process_name" >/dev/null && ((waited_sec < max_time_wait)); do
9
- INFO "Process $process_name is not running yet. Retrying in 1 seconds"
10
- INFO "Waited $waited_sec seconds of $max_time_wait seconds"
11
- sleep 1
12
- ((waited_sec=waited_sec+1))
13
- if ((waited_sec >= max_time_wait)); then
14
- return 1
15
- fi
16
- done
17
- return 0
18
-}
19
-
20
# Change password of userdocker
21
echo "userdocker:${USER_PASSWORD}" | chpasswd
22
0 commit comments