mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Compare commits
	
		
			7 Commits
		
	
	
		
			c664821514
			...
			d883f95276
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						d883f95276 | |
| 
							
							
								 | 
						c159c1add2 | |
| 
							
							
								 | 
						1ca55a8d54 | |
| 
							
							
								 | 
						0c43560908 | |
| 
							
							
								 | 
						8488668d1b | |
| 
							
							
								 | 
						2be4c2ccc5 | |
| 
							
							
								 | 
						9f322e803c | 
| 
						 | 
					@ -27,7 +27,6 @@ var_os="debian"
 | 
				
			||||||
var_version="11"
 | 
					var_version="11"
 | 
				
			||||||
NSAPP=$(echo ${APP,,} | tr -d ' ')
 | 
					NSAPP=$(echo ${APP,,} | tr -d ' ')
 | 
				
			||||||
var_install="${NSAPP}-v5-install"
 | 
					var_install="${NSAPP}-v5-install"
 | 
				
			||||||
NEXTID=$(pvesh get /cluster/nextid)
 | 
					 | 
				
			||||||
INTEGER='^[0-9]+$'
 | 
					INTEGER='^[0-9]+$'
 | 
				
			||||||
YW=$(echo "\033[33m")
 | 
					YW=$(echo "\033[33m")
 | 
				
			||||||
BL=$(echo "\033[36m")
 | 
					BL=$(echo "\033[36m")
 | 
				
			||||||
| 
						 | 
					@ -410,7 +409,7 @@ if command -v pveversion >/dev/null 2>&1; then
 | 
				
			||||||
  install_script
 | 
					  install_script
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ! command -v pveversion >/dev/null 2>&1 && [[ ! -f /var/lib/docker/volumes/hass_config/_data
 | 
					if ! command -v pveversion >/dev/null 2>&1 && [[ ! -d /var/lib/docker/volumes/hass_config/_data
 | 
				
			||||||
 ]]; then
 | 
					 ]]; then
 | 
				
			||||||
  msg_error "No ${APP} Installation Found!"
 | 
					  msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
  exit 
 | 
					  exit 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -322,7 +322,7 @@ function update_script() {
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
msg_info "Updating ${APP} LXC"
 | 
					msg_info "Updating ${APP} LXC"
 | 
				
			||||||
apt-get update &>/dev/null
 | 
					apt-get update &>/dev/null
 | 
				
			||||||
apt-get -y upgrade &>/dev/null
 | 
					apt-get install -y hyperion &>/dev/null
 | 
				
			||||||
msg_ok "Updated ${APP} LXC"
 | 
					msg_ok "Updated ${APP} LXC"
 | 
				
			||||||
msg_ok "Update Successfull"
 | 
					msg_ok "Update Successfull"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -95,8 +95,11 @@ if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
 | 
				
			||||||
  $STD apt-get -y install \
 | 
					  $STD apt-get -y install \
 | 
				
			||||||
    va-driver-all \
 | 
					    va-driver-all \
 | 
				
			||||||
    ocl-icd-libopencl1
 | 
					    ocl-icd-libopencl1
 | 
				
			||||||
  if [[ ${PCT_OSVERSION} == "20.04" ]]; then $STD apt-get -y install beignet-opencl-icd; fi
 | 
					  if [[ ${PCT_OSVERSION} == "20.04" ]]; then 
 | 
				
			||||||
 | 
					  $STD apt-get install -y beignet-opencl-icd
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					  $STD apt-get install -y intel-opencl-icd
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  /bin/chgrp video /dev/dri
 | 
					  /bin/chgrp video /dev/dri
 | 
				
			||||||
  /bin/chmod 755 /dev/dri
 | 
					  /bin/chmod 755 /dev/dri
 | 
				
			||||||
  /bin/chmod 660 /dev/dri/*
 | 
					  /bin/chmod 660 /dev/dri/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -97,7 +97,11 @@ if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
 | 
				
			||||||
  $STD apt-get -y install \
 | 
					  $STD apt-get -y install \
 | 
				
			||||||
    va-driver-all \
 | 
					    va-driver-all \
 | 
				
			||||||
    ocl-icd-libopencl1
 | 
					    ocl-icd-libopencl1
 | 
				
			||||||
  if [[ ${PCT_OSVERSION} == "20.04" ]]; then $STD apt-get -y install beignet-opencl-icd; fi
 | 
					  if [[ ${PCT_OSVERSION} == "20.04" ]]; then 
 | 
				
			||||||
 | 
					  $STD apt-get install -y beignet-opencl-icd
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					  $STD apt-get install -y intel-opencl-icd
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  /bin/chgrp video /dev/dri
 | 
					  /bin/chgrp video /dev/dri
 | 
				
			||||||
  /bin/chmod 755 /dev/dri
 | 
					  /bin/chmod 755 /dev/dri
 | 
				
			||||||
  /bin/chmod 660 /dev/dri/*
 | 
					  /bin/chmod 660 /dev/dri/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -95,9 +95,9 @@ wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiv
 | 
				
			||||||
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
 | 
					$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
 | 
				
			||||||
msg_ok "Installed Dependencies"
 | 
					msg_ok "Installed Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Omada Controller v5.8.4"
 | 
					msg_info "Installing Omada Controller v5.9.9"
 | 
				
			||||||
wget -qL https://static.tp-link.com/upload/software/2023/202301/20230130/Omada_SDN_Controller_v5.8.4_Linux_x64.deb
 | 
					wget -qL https://static.tp-link.com/upload/software/2023/202302/20230227/Omada_SDN_Controller_v5.9.9_Linux_x64.deb
 | 
				
			||||||
$STD dpkg -i Omada_SDN_Controller_v5.8.4_Linux_x64.deb
 | 
					$STD dpkg -i Omada_SDN_Controller_v5.9.9_Linux_x64.deb
 | 
				
			||||||
msg_ok "Installed Omada Controller"
 | 
					msg_ok "Installed Omada Controller"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
 | 
					echo "export TERM='xterm-256color'" >>/root/.bashrc
 | 
				
			||||||
| 
						 | 
					@ -119,7 +119,7 @@ fi
 | 
				
			||||||
if [[ "${SSH_ROOT}" == "yes" ]]; then sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config; systemctl restart sshd; fi
 | 
					if [[ "${SSH_ROOT}" == "yes" ]]; then sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config; systemctl restart sshd; fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Cleaning up"
 | 
					msg_info "Cleaning up"
 | 
				
			||||||
rm -rf Omada_SDN_Controller_v5.8.4_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb
 | 
					rm -rf Omada_SDN_Controller_v5.9.9_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb
 | 
				
			||||||
$STD apt-get autoremove
 | 
					$STD apt-get autoremove
 | 
				
			||||||
$STD apt-get autoclean
 | 
					$STD apt-get autoclean
 | 
				
			||||||
msg_ok "Cleaned"
 | 
					msg_ok "Cleaned"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -96,8 +96,11 @@ if [[ -z "$(grep -w "100000" /proc/self/uid_map)" ]]; then
 | 
				
			||||||
  $STD apt-get -y install \
 | 
					  $STD apt-get -y install \
 | 
				
			||||||
    va-driver-all \
 | 
					    va-driver-all \
 | 
				
			||||||
    ocl-icd-libopencl1 
 | 
					    ocl-icd-libopencl1 
 | 
				
			||||||
  if [[ ${PCT_OSVERSION} == "20.04" ]]; then $STD apt-get -y install beignet-opencl-icd; fi
 | 
					  if [[ ${PCT_OSVERSION} == "20.04" ]]; then 
 | 
				
			||||||
 | 
					  $STD apt-get install -y beignet-opencl-icd
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					  $STD apt-get install -y intel-opencl-icd
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  /bin/chgrp video /dev/dri
 | 
					  /bin/chgrp video /dev/dri
 | 
				
			||||||
  /bin/chmod 755 /dev/dri
 | 
					  /bin/chmod 755 /dev/dri
 | 
				
			||||||
  /bin/chmod 660 /dev/dri/*
 | 
					  /bin/chmod 660 /dev/dri/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue