mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 19:12:02 +00:00 
			
		
		
		
	Update jellyfin_setup.sh
This commit is contained in:
		
							parent
							
								
									5473fc1441
								
							
						
					
					
						commit
						c399f5dcbf
					
				| @ -28,9 +28,9 @@ function msg() { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" | echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" | ||||||
|  sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen | sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen | ||||||
|  locale-gen >/dev/null | locale-gen >/dev/null | ||||||
|  while [ "$(hostname -I)" = "" ]; do | while [ "$(hostname -I)" = "" ]; do | ||||||
|   1>&2 echo -e "${CROSS} \e[1;31m No Network: \e[0m $(date)" |   1>&2 echo -e "${CROSS} \e[1;31m No Network: \e[0m $(date)" | ||||||
|   sleep $RETRY_EVERY |   sleep $RETRY_EVERY | ||||||
|   ((NUM--)) |   ((NUM--)) | ||||||
| @ -39,29 +39,35 @@ echo -e "${CHECKMARK} \e[1;92m Setting up Container OS... \e[0m" | |||||||
|     1>&2 echo -e "${CROSS} \e[1;31m No Network After $RETRY_NUM Tries \e[0m" |     1>&2 echo -e "${CROSS} \e[1;31m No Network After $RETRY_NUM Tries \e[0m" | ||||||
|     exit 1 |     exit 1 | ||||||
|   fi |   fi | ||||||
|  done | done | ||||||
| echo -e "${CHECKMARK} \e[1;92m Network Connected: \e[0m $(hostname -I)" |   echo -e "${CHECKMARK} \e[1;92m Network Connected: \e[0m $(hostname -I)" | ||||||
| 
 | 
 | ||||||
| echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m" | echo -e "${CHECKMARK} \e[1;92m Updating Container OS... \e[0m" | ||||||
|  apt-get update &>/dev/null | apt-get update &>/dev/null | ||||||
|  apt-get -qqy upgrade &>/dev/null | apt-get -qqy upgrade &>/dev/null | ||||||
| 
 | 
 | ||||||
| echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" | echo -e "${CHECKMARK} \e[1;92m Installing Dependencies... \e[0m" | ||||||
|  apt-get update &>/dev/null |  apt-get update &>/dev/null | ||||||
|  apt-get -qqy install \ |  apt-get -qqy install \ | ||||||
|      curl \ |      curl \ | ||||||
|      sudo &>/dev/null |      sudo &>/dev/null | ||||||
|  sudo apt install extrepo -y &>/dev/null |  sudo apt install apt-transport-https -y &>/dev/null | ||||||
|  sudo extrepo enable jellyfin &>/dev/null |  sudo apt-get install software-properties-common -y &>/dev/null | ||||||
|   |   | ||||||
|  | echo -e "${CHECKMARK} \e[1;92m Setting Up Jellyfin Repository... \e[0m" | ||||||
|  | # sudo apt install extrepo -y &>/dev/null | ||||||
|  | # sudo extrepo enable jellyfin | ||||||
|  | sudo add-apt-repository universe  | ||||||
|  | wget -O -q - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo apt-key add - &>/dev/null | ||||||
|  | echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu $( lsb_release -c -s ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list &>/dev/null | ||||||
| echo -e "${CHECKMARK} \e[1;92m Installing Jellyfin... \e[0m" | echo -e "${CHECKMARK} \e[1;92m Installing Jellyfin... \e[0m" | ||||||
|  sudo apt-get update &>/dev/null | apt-get update &>/dev/null | ||||||
|  sudo apt install jellyfin -y &>/dev/null | sudo apt install jellyfin -y &>/dev/null | ||||||
| echo -e "${CHECKMARK} \e[1;92m Customizing Container... \e[0m" | echo -e "${CHECKMARK} \e[1;92m Customizing Container... \e[0m" | ||||||
|  chmod -x /etc/update-motd.d/* | chmod -x /etc/update-motd.d/* | ||||||
|  touch ~/.hushlogin  | touch ~/.hushlogin  | ||||||
|  GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" | GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" | ||||||
|  mkdir -p $(dirname $GETTY_OVERRIDE) | mkdir -p $(dirname $GETTY_OVERRIDE) | ||||||
| cat << EOF > $GETTY_OVERRIDE | cat << EOF > $GETTY_OVERRIDE | ||||||
| [Service] | [Service] | ||||||
| ExecStart= | ExecStart= | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user