Correct adding no subscription repository
Correction of if commands.
This commit is contained in:
parent
59ab10792a
commit
771432298d
4
setup
4
setup
|
@ -1549,7 +1549,7 @@ do
|
||||||
echo "Please wait ..."
|
echo "Please wait ..."
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
if [`pveversion | grep "pve-manager/[7]" | wc -l` -ne 1]
|
if [ `pveversion | grep "pve-manager/[7]" | wc -l` -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pxve-no-sub.list
|
echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pxve-no-sub.list
|
||||||
apt update -y >> ${LOGFILE} 2>> ${LOGFILE}
|
apt update -y >> ${LOGFILE} 2>> ${LOGFILE}
|
||||||
|
@ -1558,7 +1558,7 @@ do
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [`pveversion | grep "pve-manager/[8]" | wc -l` -ne 1]
|
if [ `pveversion | grep "pve-manager/[8]" | wc -l` -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pxve-no-sub.list
|
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pxve-no-sub.list
|
||||||
apt update -y >> ${LOGFILE} 2>> ${LOGFILE}
|
apt update -y >> ${LOGFILE} 2>> ${LOGFILE}
|
||||||
|
|
Loading…
Reference in New Issue