Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/c71f204e263f9ba80017b8377d638dc5571b5b5f?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
11 additions and
7 deletions
@ -39,10 +39,14 @@ function update_container() {
container = $1
header_info
name = $( pct exec " $container " hostname)
os = $( pct config " $container " | awk '/^ostype/ {print $2}' )
if [ [ " $os " = = "ubuntu" || " $os " = = "debian" ] ] ; then
disk_info = $( pct exec " $container " df /boot | awk 'NR==2{gsub("%","",$5); printf "%s %.1fG %.1fG %.1fG", $5, $3/1024/1024, $2/1024/1024, $4/1024/1024 }' )
read -ra disk_info_array <<< " $disk_info "
echo -e " ${ BL } [Info] ${ GN } Updating ${ BL } $container ${ CL } : ${ GN } $name ${ CL } - ${ YW } Boot Disk: ${ disk_info_array [0] } % full [ ${ disk_info_array [1] } / ${ disk_info_array [2] } used, ${ disk_info_array [3] } free] ${ CL } \n "
os = $( pct config " $container " | awk '/^ostype/ {print $2}' )
else
echo -e " ${ BL } [Info] ${ GN } Updating ${ BL } $container ${ CL } : ${ GN } $name ${ CL } ${ YW } [No disk info for ${ os } ] ${ CL } \n "
fi
case " $os " in
alpine) pct exec " $container " -- ash -c "apk update && apk upgrade" ; ;
archlinux) pct exec " $container " -- bash -c "pacman -Syyu --noconfirm" ; ;