New domain variable
This commit is contained in:
		
							parent
							
								
									d5ac52d98e
								
							
						
					
					
						commit
						2af68d90e0
					
				| 
						 | 
					@ -59,7 +59,7 @@ START=0
 | 
				
			||||||
LAST=TBD
 | 
					LAST=TBD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
THIS_SRV_DIST=$(lsb_release -sc)
 | 
					THIS_SRV_DIST=$(lsb_release -sc)
 | 
				
			||||||
JITSI_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f1)
 | 
					JITSI_REPO=$(apt-cache policy | awk '/jitsi/&&/stable/{print$3}' | awk -F / 'NR==1{print$1}')
 | 
				
			||||||
JVB2_CONF="/etc/jitsi/videobridge/config"
 | 
					JVB2_CONF="/etc/jitsi/videobridge/config"
 | 
				
			||||||
JVB2_NCONF="/etc/jitsi/videobridge/jvb.conf"
 | 
					JVB2_NCONF="/etc/jitsi/videobridge/jvb.conf"
 | 
				
			||||||
JVB2_SIP="/etc/jitsi/videobridge/sip-communicator.properties"
 | 
					JVB2_SIP="/etc/jitsi/videobridge/sip-communicator.properties"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@ systemctl status $1
 | 
				
			||||||
MAIN_TEL="/etc/telegraf/telegraf.conf"
 | 
					MAIN_TEL="/etc/telegraf/telegraf.conf"
 | 
				
			||||||
TEL_JIT="/etc/telegraf/telegraf.d/jitsi.conf"
 | 
					TEL_JIT="/etc/telegraf/telegraf.d/jitsi.conf"
 | 
				
			||||||
GRAFANA_INI="/etc/grafana/grafana.ini"
 | 
					GRAFANA_INI="/etc/grafana/grafana.ini"
 | 
				
			||||||
DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | awk -F'.cfg' '{print $1}' | awk '!NF || !seen[$0]++')
 | 
					DOMAIN="$(ls /etc/prosody/conf.d/ | awk -F'.cfg' '!/localhost/{print $1}' | awk '!NF || !seen[$0]++')"
 | 
				
			||||||
WS_CONF="/etc/nginx/sites-enabled/$DOMAIN.conf"
 | 
					WS_CONF="/etc/nginx/sites-enabled/$DOMAIN.conf"
 | 
				
			||||||
GRAFANA_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 14 | head -n1)"
 | 
					GRAFANA_PASS="$(tr -dc "a-zA-Z0-9#_*=" < /dev/urandom | fold -w 14 | head -n1)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue