diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 13:04:23 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 13:04:23 +0100 |
| commit | b57735dfa0bba14446552eb2453db38917a71803 (patch) | |
| tree | 2dd3c7ec1b2e359512f3652d4187069f1f15526a /ci/docker/starteduvpn.sh | |
| parent | 513b400277fe14e4a5b0bb84c41b2faaac3e2338 (diff) | |
Wait for pid to finish instead of sleeping
Diffstat (limited to 'ci/docker/starteduvpn.sh')
| -rw-r--r-- | ci/docker/starteduvpn.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/docker/starteduvpn.sh b/ci/docker/starteduvpn.sh index cddf88c..39eb53e 100644 --- a/ci/docker/starteduvpn.sh +++ b/ci/docker/starteduvpn.sh @@ -15,10 +15,11 @@ systemctl start httpd systemctl start crond vpn-daemon & +pid_daemon=$! sleep 5 vpn-maint-apply-changes sudo -u apache vpn-user-portal-account --add "${PORTAL_USER}" --password "${PORTAL_PASS}" -sleep infinity +wait $pid_daemon |
