LOGS variable in _deploy.conf
This commit is contained in:
parent
4f9667fc0a
commit
ba89b97e7d
|
@ -54,9 +54,9 @@ vmctl reload
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
mkfifo -m 600 /tmp/pipe_${1}
|
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
|
vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
printf '%s\n' "$line" >&2
|
printf '%s\n' "$line" >&2
|
||||||
|
@ -72,7 +72,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
#exit 1
|
#exit 1
|
||||||
#;;
|
#;;
|
||||||
esac
|
esac
|
||||||
done > /tmp/pipe_${1} 2> /home/mischa/${1}.log
|
done > /tmp/pipe_${1} 2> ${LOGS}/${1}.log
|
||||||
|
|
||||||
echo "completed"
|
echo "completed"
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done > /tmp/pipe_${1} 2>> /home/mischa/${1}.log
|
done > /tmp/pipe_${1} 2>> ${LOGS}/${1}.log
|
||||||
|
|
||||||
rm -rf /tmp/pipe_${1}
|
rm -rf /tmp/pipe_${1}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue