summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/run.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/run.erb b/templates/run.erb
index f02a486..d8c1a81 100644
--- a/templates/run.erb
+++ b/templates/run.erb
@@ -1,8 +1,8 @@
#!/bin/bash
envdir=<%= svbase %>/env
root=<%= rundir %>
-echo Starting <%= name %> from $root
+echo "Starting <%= name %> from ${root}"
cd $root
-
+mkdir -p "${envdir}"
exec 2>&1
-exec chpst -e $envdir -u <%= user %>:<%= group %> <%= command %>
+exec chpst -e "${envdir}" -u <%= user %>:<%= group %> <%= command %>