From 7e05e830228294b6b64ee78610a2e55d0a1973de Mon Sep 17 00:00:00 2001 From: mischa Date: Wed, 7 Dec 2022 18:58:05 +0100 Subject: [PATCH] add LOGS variable to relaunch.sh --- relaunch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/relaunch.sh b/relaunch.sh index 5f67749..54bb200 100755 --- a/relaunch.sh +++ b/relaunch.sh @@ -44,9 +44,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(8) ${1}, log output /home/mischa/${1}.log... " +echo -n "autoinstall(8) ${1}, log output ${LOGS}/${1}.log... " vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do printf '%s\n' "$line" >&2 @@ -62,7 +62,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" @@ -80,7 +80,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}