From ba89b97e7d78cf2ad79d4869146140b189d3edc1 Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 3 Dec 2022 13:43:20 +0100 Subject: [PATCH] LOGS variable in _deploy.conf --- launch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/launch.sh b/launch.sh index 0314a6f..69cfe83 100755 --- a/launch.sh +++ b/launch.sh @@ -54,9 +54,9 @@ vmctl reload sleep 10 mkfifo -m 600 /tmp/pipe_${1} -install -g mischa -m 600 -o mischa /dev/null /home/mischa/${1}.log +install -g mischa -m 600 -o mischa /dev/null ${LOGS}/${1}.log -echo -n "autoinstall ${1}, log output /home/mischa/${1}.log... " +echo -n "autoinstall ${1}, log output ${LOGS}/${1}.log... " vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do printf '%s\n' "$line" >&2 @@ -72,7 +72,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do #exit 1 #;; esac -done > /tmp/pipe_${1} 2> /home/mischa/${1}.log +done > /tmp/pipe_${1} 2> ${LOGS}/${1}.log echo "completed" @@ -90,7 +90,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do break ;; esac -done > /tmp/pipe_${1} 2>> /home/mischa/${1}.log +done > /tmp/pipe_${1} 2>> ${LOGS}/${1}.log rm -rf /tmp/pipe_${1}