mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Colors in log
This commit is contained in:
parent
b7506b2bee
commit
fb2b828704
@ -28,13 +28,14 @@ start() {
|
|||||||
|
|
||||||
if [ ! -f "$SCRIPT" ]; then
|
if [ ! -f "$SCRIPT" ]; then
|
||||||
|
|
||||||
error 'Agent script not found!' > /dev/ttyS0
|
|
||||||
|
|
||||||
URL="https://raw.githubusercontent.com/kroese/virtual-dsm/master/agent/agent.sh"
|
URL="https://raw.githubusercontent.com/kroese/virtual-dsm/master/agent/agent.sh"
|
||||||
|
|
||||||
if ! curl -sfk -m 10 -o "${SCRIPT}" "${URL}"; then
|
if ! curl -sfk -m 10 -o "${SCRIPT}" "${URL}"; then
|
||||||
|
error 'Failed to download agent script.' > /dev/ttyS0
|
||||||
rm -f "${SCRIPT}"
|
rm -f "${SCRIPT}"
|
||||||
return 1
|
return 1
|
||||||
|
else
|
||||||
|
info 'Agent script was missing?' > /dev/ttyS0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 755 "${SCRIPT}"
|
chmod 755 "${SCRIPT}"
|
||||||
@ -84,4 +85,3 @@ case "$1" in
|
|||||||
echo "Usage: $0 {start|stop|restart}"
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user