summaryrefslogtreecommitdiff
path: root/ci/docker/starteduvpn.sh
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-24 14:49:46 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-24 14:49:46 +0100
commit9f44f46a4cbf6857560acf567e2c0e93bd39012d (patch)
tree2fa74e3f2dbf712497daca90a21f6f54be62d485 /ci/docker/starteduvpn.sh
parent920aa02f020c348ddfc3dd1c31684fcc5d386897 (diff)
Add CI docker images for testing with the server
Diffstat (limited to 'ci/docker/starteduvpn.sh')
-rw-r--r--ci/docker/starteduvpn.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/ci/docker/starteduvpn.sh b/ci/docker/starteduvpn.sh
new file mode 100644
index 0000000..191ef79
--- /dev/null
+++ b/ci/docker/starteduvpn.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+systemctl start php-fpm
+systemctl start httpd
+systemctl start crond
+
+vpn-daemon &
+sleep 5
+
+vpn-maint-apply-changes
+
+USER_NAME="docker"
+USER_PASS="docker"
+
+sudo -u apache vpn-user-portal-account --add "${USER_NAME}" --password "${USER_PASS}"
+
+sleep infinity