summaryrefslogtreecommitdiff
path: root/waev/run
diff options
context:
space:
mode:
authorGuillermo Ramos2025-02-17 15:53:35 +0100
committerGuillermo Ramos2025-02-17 15:53:35 +0100
commitc26d581053bbfb9af2dcb32810477a388304e92e (patch)
tree2dc392db71ecb7e5982f77d39548d67aea77a245 /waev/run
parent4e766cc4d1f46ab8851d77684382f5f6c10b7dce (diff)
downloads6-services-c26d581053bbfb9af2dcb32810477a388304e92e.tar.gz
waev: load user/path from env
Diffstat (limited to 'waev/run')
-rwxr-xr-xwaev/run22
1 files changed, 14 insertions, 8 deletions
diff --git a/waev/run b/waev/run
index 725de03..3825411 100755
--- a/waev/run
+++ b/waev/run
@@ -1,10 +1,16 @@
-#!/bin/sh
+#!/bin/execlineb
-source $(dirname $0)/env
+envfile env
-s6-setuidgid gramos sh -c '
-cd ~/git/waev
-mix deps.get
-mix phx.digest
-exec mix phx.server
-'
+importas -S WAEV_USER
+s6-setuidgid $WAEV_USER
+
+importas -S WAEV_PATH
+cd $WAEV_PATH
+
+foreground {
+ mix deps.get
+ mix phx.digest
+}
+
+mix phx.server