diff options
author | Guillermo Ramos | 2025-02-17 15:53:35 +0100 |
---|---|---|
committer | Guillermo Ramos | 2025-02-17 15:53:35 +0100 |
commit | c26d581053bbfb9af2dcb32810477a388304e92e (patch) | |
tree | 2dc392db71ecb7e5982f77d39548d67aea77a245 /waev/run | |
parent | 4e766cc4d1f46ab8851d77684382f5f6c10b7dce (diff) | |
download | s6-services-c26d581053bbfb9af2dcb32810477a388304e92e.tar.gz |
waev: load user/path from env
Diffstat (limited to 'waev/run')
-rwxr-xr-x | waev/run | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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 |