Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/9cb82fc8d6522c174936356cde585daeba553b85?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
17 additions and
0 deletions
@ -37,9 +37,19 @@ function update_container() {
echo -e " ${ BL } [Info] ${ GN } Updating ${ BL } $container ${ CL } \n "
echo -e " ${ BL } [Info] ${ GN } Updating ${ BL } $container ${ CL } \n "
pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
}
}
read -p "Skip stopped containers? " -n 1 -r
echo
if [ [ ! $REPLY = ~ ^[ Yy] $ ] ]
then
skip = no
else
skip = yes
fi
for container in $containers
for container in $containers
do
do
status = ` pct status $container `
status = ` pct status $container `
if [ " $skip " = = "no" ] ; then
if [ " $status " = = "status: stopped" ] ; then
if [ " $status " = = "status: stopped" ] ; then
echo -e " ${ BL } [Info] ${ GN } Starting ${ BL } $container ${ CL } \n "
echo -e " ${ BL } [Info] ${ GN } Starting ${ BL } $container ${ CL } \n "
pct start $container
pct start $container
@ -51,5 +61,12 @@ do
elif [ " $status " = = "status: running" ] ; then
elif [ " $status " = = "status: running" ] ; then
update_container $container
update_container $container
fi
fi
fi
if [ " $skip " = = "yes" ] ; then
if [ " $status " = = "status: running" ] ; then
update_container $container
fi
fi
done ; wait
done ; wait
echo -e " ${ GN } Finished, All Containers Updated. ${ CL } \n "
echo -e " ${ GN } Finished, All Containers Updated. ${ CL } \n "