mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Compare commits
	
		
			2 Commits
		
	
	
		
			ab40267e90
			...
			6368df0b9d
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						6368df0b9d | |
| 
							
							
								 | 
						10ecbb856b | 
| 
						 | 
				
			
			@ -65,6 +65,18 @@ arch_check() {
 | 
			
		|||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ssh_check() {
 | 
			
		||||
  if command -v pveversion >/dev/null 2>&1; then
 | 
			
		||||
    if [ -n "$SSH_CLIENT" ]; then
 | 
			
		||||
      if whiptail --defaultno --title "SSH DETECTED" --yesno "The scripts suggest using the Proxmox shell instead of SSH, since the latter can create issues while gathering variables. Would you like to proceed with using SSH?" 10 68; then
 | 
			
		||||
        echo "you've been warned"
 | 
			
		||||
      else
 | 
			
		||||
        exit
 | 
			
		||||
      fi
 | 
			
		||||
    fi
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
echo_default() {
 | 
			
		||||
  if [ "$var_os" == "ubuntu" ]; then
 | 
			
		||||
    echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
 | 
			
		||||
| 
						 | 
				
			
			@ -386,9 +398,9 @@ build_container() {
 | 
			
		|||
  TEMP_DIR=$(mktemp -d)
 | 
			
		||||
  pushd $TEMP_DIR >/dev/null
 | 
			
		||||
  if [ "$var_os" == "alpine" ]; then
 | 
			
		||||
  export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/alpine-install.func)"
 | 
			
		||||
    export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/alpine-install.func)"
 | 
			
		||||
  else
 | 
			
		||||
  export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)"
 | 
			
		||||
    export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)"
 | 
			
		||||
  fi
 | 
			
		||||
  export tz="$timezone"
 | 
			
		||||
  if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then
 | 
			
		||||
| 
						 | 
				
			
			@ -452,8 +464,8 @@ EOF
 | 
			
		|||
  pct start "$CTID"
 | 
			
		||||
  msg_ok "Started LXC Container"
 | 
			
		||||
  if [ "$var_os" == "alpine" ]; then
 | 
			
		||||
  sleep 2
 | 
			
		||||
  pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
 | 
			
		||||
    sleep 2
 | 
			
		||||
    pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
 | 
			
		||||
  fi
 | 
			
		||||
  lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue