mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update debian-v3.sh
This commit is contained in:
		
							parent
							
								
									d943203b91
								
							
						
					
					
						commit
						86b85a6609
					
				| 
						 | 
				
			
			@ -31,6 +31,7 @@ ${CL}"
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
header_info
 | 
			
		||||
 | 
			
		||||
function pve_7() {
 | 
			
		||||
if [ `pveversion | grep "pve-manager/7" | wc -l` -ne 1 ]; then
 | 
			
		||||
        echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater"
 | 
			
		||||
| 
						 | 
				
			
			@ -75,6 +76,7 @@ function advanced_settings() {
 | 
			
		|||
                if [ -z $CT_TYPE1 ]; then CT_TYPE1="Unprivileged" CT_TYPE="1"; 
 | 
			
		||||
                echo -en "${GN}Set CT Type ${BL}$CT_TYPE1${CL}"
 | 
			
		||||
                else
 | 
			
		||||
                CT_TYPE1="Privileged"
 | 
			
		||||
                CT_TYPE="0"
 | 
			
		||||
                echo -en "${GN}Set CT Type ${BL}Privileged${CL}"  
 | 
			
		||||
                fi;
 | 
			
		||||
| 
						 | 
				
			
			@ -270,20 +272,24 @@ function error_exit() {
 | 
			
		|||
  [ ! -z ${CTID-} ] && cleanup_ctid
 | 
			
		||||
  exit $EXIT
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function warn() {
 | 
			
		||||
  local REASON="\e[97m$1\e[39m"
 | 
			
		||||
  local FLAG="\e[93m[WARNING]\e[39m"
 | 
			
		||||
  msg "$FLAG $REASON"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function info() {
 | 
			
		||||
  local REASON="$1"
 | 
			
		||||
  local FLAG="\e[36m[INFO]\e[39m"
 | 
			
		||||
  msg "$FLAG $REASON"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function msg() {
 | 
			
		||||
  local TEXT="$1"
 | 
			
		||||
  echo -e "$TEXT"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function cleanup_ctid() {
 | 
			
		||||
  if $(pct status $CTID &>/dev/null); then
 | 
			
		||||
    if [ "$(pct status $CTID | awk '{print $2}')" == "running" ]; then
 | 
			
		||||
| 
						 | 
				
			
			@ -294,11 +300,13 @@ function cleanup_ctid() {
 | 
			
		|||
    pvesm free $ROOTFS
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function cleanup() {
 | 
			
		||||
  popd >/dev/null
 | 
			
		||||
  rm -rf $TEMP_DIR
 | 
			
		||||
}
 | 
			
		||||
 if [ "$CT_TYPE" == "1" ]; then 
 | 
			
		||||
 | 
			
		||||
if [ "$CT_TYPE" == "1" ]; then 
 | 
			
		||||
 FEATURES="nesting=1,keyctl=1"
 | 
			
		||||
 else
 | 
			
		||||
 FEATURES="nesting=1"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue