mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update zigbee2mqtt-v3.sh
This commit is contained in:
parent
714de2f2c4
commit
c0867fb73c
@ -10,7 +10,7 @@ GN=`echo "\033[32m"`
|
|||||||
CL=`echo "\033[m"`
|
CL=`echo "\033[m"`
|
||||||
APP="Zigbee2MQTT"
|
APP="Zigbee2MQTT"
|
||||||
NSAPP=$(echo ${APP,,} | tr -d ' ')
|
NSAPP=$(echo ${APP,,} | tr -d ' ')
|
||||||
PVE=$(pveversion | grep "pve-manager/7" | wc -l)
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn
|
read -p "This will create a New ${APP} LXC. Proceed(y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
@ -35,6 +35,7 @@ ${CL}"
|
|||||||
|
|
||||||
header_info
|
header_info
|
||||||
function pve_check() {
|
function pve_check() {
|
||||||
|
PVE=$(pveversion | grep "pve-manager/7" | wc -l)
|
||||||
if [[ $PVE != 1 ]]; then
|
if [[ $PVE != 1 ]]; then
|
||||||
echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater"
|
echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater"
|
||||||
echo -e "Exiting..."
|
echo -e "Exiting..."
|
||||||
@ -261,7 +262,7 @@ function start_script() {
|
|||||||
advanced_settings
|
advanced_settings
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
pve_check
|
#pve_check
|
||||||
start_script
|
start_script
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
Loading…
Reference in New Issue
Block a user