|
@ -16,7 +16,7 @@ function install_host { |
|
|
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1 |
|
|
|
|
|
|
|
|
# required packages jq |
|
|
# required packages jq |
|
|
/usr/bin/dpkg-query --status jq |
|
|
|
|
|
|
|
|
/usr/bin/dpkg-query --status jq >/dev/null 2>&1 |
|
|
[ $? -ne 0 ] && /usr/bin/apt install -y jq |
|
|
[ $? -ne 0 ] && /usr/bin/apt install -y jq |
|
|
|
|
|
|
|
|
|
|
|
|
|
|