Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/0aa58706531fd852b0ed46b37db8ce8d837ade2d?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
60 additions and
2 deletions
@ -79,9 +79,9 @@ show_menu2(){
}
option_picked( ) {
message = ${ @ :- " ${ CL } Error: No message passed " }
message 2 = ${ @ :- " ${ CL } Error: No message passed " }
printf " ${ YW } ${ message1 } ${ CL } \n "
printf " ${ YW } ${ message } ${ CL } \n "
printf " ${ YW } ${ message 2 } ${ CL } \n "
}
show_menu2
while [ $opt != '' ]
@ -114,6 +114,51 @@ while [ $opt != '' ]
esac
fi
done
show_menu3( ) {
printf " ${ YW } 1) ${ GN } Automatic DHCP ${ CL } \n "
printf " ${ YW } 2) ${ GN } Manual DHCP ${ CL } \n "
printf " Please choose a DHCP Type and hit enter or ${ RD } x ${ CL } to exit. "
read opt
}
option_picked( ) {
message3 = ${ @ :- " ${ CL } Error: No message passed " }
printf " ${ YW } ${ message1 } ${ CL } \n "
printf " ${ YW } ${ message2 } ${ CL } \n "
printf " ${ YW } ${ message3 } ${ CL } \n "
}
show_menu3
while [ $opt != '' ]
do
if [ $opt = '' ] ; then
exit;
else
case $opt in
1) clear;
header_info;
option_picked "Using Automatic DHCP" ;
DHCP = " "
break;
; ;
2) clear;
header_info;
option_picked "Using Manual DHCP" ;
DHCP = "1"
break;
; ;
x) exit;
; ;
\n ) exit;
; ;
*) clear;
option_picked "Please choose a DHCP Type from the menu" ;
show_menu3;
; ;
esac
fi
done
set -o errexit
set -o errtrace
@ -190,6 +235,19 @@ STORAGE_TYPE=$(pvesm status -storage $(pct config $CTID | grep rootfs | awk -F "
if [ " $STORAGE_TYPE " = = "zfspool" ] ; then
warn "Some addons may not work due to ZFS not supporting 'fallocate'."
fi
if [ " $DHCP " = = "1" ] ; then
MAC = $( pct config $CTID \
| grep -i hwaddr \
| awk '{print substr($2, 31, length($3) 17 ) }' ) \
echo -e " MAC Address ${ BL } $MAC ${ CL } "
dhcp_reservation( ) {
printf "Please set DHCP reservation and press Enter."
read
}
dhcp_reservation
fi
echo -en " ${ GN } Starting LXC Container... "
pct start $CTID