Merge and track latest features on stable #6
			
				
			
		
		
		
	|  | @ -20,12 +20,13 @@ set -x | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| # SYSTEM SETUP | # SYSTEM SETUP | ||||||
| JITSI_STBL_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f 1) | JITSI_UNSTBL_REPO=$(apt-cache policy | grep http | grep jitsi | grep unstable | awk '{print $3}' | head -n 1 | cut -d "/" -f1) | ||||||
| CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{print $2}' | cut -d "/" -f 4) | CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{print $2}' | cut -d "/" -f4) | ||||||
| APACHE_2=$(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") | APACHE_2=$(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") | ||||||
| NGINX=$(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") | NGINX=$(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") | ||||||
| DIST=$(lsb_release -sc) | DIST=$(lsb_release -sc) | ||||||
| GOOGL_REPO="/etc/apt/sources.list.d/dl_google_com_linux_chrome_deb.list" | GOOGL_REPO="/etc/apt/sources.list.d/dl_google_com_linux_chrome_deb.list" | ||||||
|  | PROSODY_REPO=$(apt-cache policy | grep http | grep prosody| awk '{print $3}' | head -n 1 | cut -d "/" -f2) | ||||||
| 
 | 
 | ||||||
| if [ $DIST = flidas ]; then | if [ $DIST = flidas ]; then | ||||||
| DIST="xenial" | DIST="xenial" | ||||||
|  | @ -136,9 +137,17 @@ echo "$(lsb_release -sc), even when it's compatible and functional. | ||||||
| We suggest to use the next (LTS) release, for longer support and security reasons." | We suggest to use the next (LTS) release, for longer support and security reasons." | ||||||
| read -n 1 -s -r -p "Press any key to continue..."$'\n' | read -n 1 -s -r -p "Press any key to continue..."$'\n' | ||||||
| fi | fi | ||||||
|  | #Prosody repository | ||||||
|  | echo "Add Jitsi key" | ||||||
|  | if [ "$PROSODY_REPO" = "main" ]; then | ||||||
|  | 	echo "Prosody repository already installed" | ||||||
|  | else | ||||||
|  | 	echo "deb http://packages.prosody.im/debian $(lsb_release -sc) main" > /etc/apt/sources.list.d/prosody.list | ||||||
|  | 	wget -qO - https://prosody.im/files/prosody-debian-packages.key | apt-key add - | ||||||
|  | fi | ||||||
| # Jitsi-Meet Repo | # Jitsi-Meet Repo | ||||||
| echo "Add Jitsi key" | echo "Add Jitsi key" | ||||||
| if [ "$JITSI_STBL_REPO" = "unstable" ]; then | if [ "$JITSI_UNSTBL_REPO" = "unstable" ]; then | ||||||
| 	echo "Jitsi stable repository already installed" | 	echo "Jitsi stable repository already installed" | ||||||
| else | else | ||||||
| 	echo 'deb https://download.jitsi.org unstable/' > /etc/apt/sources.list.d/jitsi-unstable.list | 	echo 'deb https://download.jitsi.org unstable/' > /etc/apt/sources.list.d/jitsi-unstable.list | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue