Skip to content

Commit 01b5ecd

Browse files
committed
Remove unnecessary function
1 parent e3cf30d commit 01b5ecd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/base-image/startup.sh

-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
#!/bin/bash
22
source /opt/bash-utils/logger.sh
33

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-
204
# Change password of userdocker
215
echo "userdocker:${USER_PASSWORD}" | chpasswd
226

0 commit comments

Comments
 (0)