mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
[enh] compile with java7
This commit is contained in:
parent
d1f2853bcb
commit
0c8efcc7a3
1 changed files with 8 additions and 11 deletions
|
@ -4,7 +4,6 @@
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
|
|
||||||
# TODO : if arch != x86 or amd64 => unsupported
|
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
if [[ "$arch" != "i686" ]] && [[ "$arch" != "x86_64" ]] ; then
|
if [[ "$arch" != "i686" ]] && [[ "$arch" != "x86_64" ]] ; then
|
||||||
echo "Currently supported only on i686 or x86_64."
|
echo "Currently supported only on i686 or x86_64."
|
||||||
|
@ -23,10 +22,9 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install openjdk-7-jre ant openjdk-6-jdk -y
|
sudo apt-get install openjdk-7-jdk ant -y
|
||||||
|
|
||||||
# TODO do we really need this ???
|
# TODO need lua-sec >= 0.5 otherwise jicofo cannot connect because of "no shared ciphers"
|
||||||
#sudo apt-get install lua-dbi-sqlite3 -y
|
|
||||||
|
|
||||||
#git clone https://github.com/andyet/otalk-server ../src/otalk-server
|
#git clone https://github.com/andyet/otalk-server ../src/otalk-server
|
||||||
# TODO mam,websocket(s) already available in default metronome
|
# TODO mam,websocket(s) already available in default metronome
|
||||||
|
@ -42,7 +40,6 @@ jitsi_domain="jitsi.${domain}"
|
||||||
|
|
||||||
sudo groupadd jitsi
|
sudo groupadd jitsi
|
||||||
|
|
||||||
|
|
||||||
#--- Install Jitsi videobridge ---
|
#--- Install Jitsi videobridge ---
|
||||||
jvb_buildnum=$(cat ../conf/jvb.version)
|
jvb_buildnum=$(cat ../conf/jvb.version)
|
||||||
if [[ "$arch" == "i686" ]] ; then
|
if [[ "$arch" == "i686" ]] ; then
|
||||||
|
@ -81,7 +78,7 @@ sudo yunohost service add jitsi-videobridge -l /var/log/jitsi/jvb.log
|
||||||
# See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
|
# See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
|
||||||
# TODO : logrotate
|
# TODO : logrotate
|
||||||
# TODO : hook to monit
|
# TODO : hook to monit
|
||||||
# TODO : enable jitsi stats : what wan we do with it ?
|
# TODO : enable jitsi stats : what do we do with it ?
|
||||||
|
|
||||||
#--- Install Jicofo ---
|
#--- Install Jicofo ---
|
||||||
wget -O ../src/jicofo.zip https://github.com/jitsi/jicofo/archive/master.zip
|
wget -O ../src/jicofo.zip https://github.com/jitsi/jicofo/archive/master.zip
|
||||||
|
@ -93,7 +90,7 @@ else
|
||||||
jicofo_target="lin64"
|
jicofo_target="lin64"
|
||||||
jicofo_arch="x64"
|
jicofo_arch="x64"
|
||||||
fi
|
fi
|
||||||
bash -c "cd ../src/jicofo/jicofo-master; ant dist.$jicofo_target"
|
bash -c "cd ../src/jicofo/jicofo-master; PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH ant dist.$jicofo_target"
|
||||||
jicofo_dist_zip=$(ls ../src/jicofo/jicofo-master/dist/linux/*.zip)
|
jicofo_dist_zip=$(ls ../src/jicofo/jicofo-master/dist/linux/*.zip)
|
||||||
unzip $jicofo_dist_zip -d ../src/jicofo_dist
|
unzip $jicofo_dist_zip -d ../src/jicofo_dist
|
||||||
|
|
||||||
|
@ -125,7 +122,6 @@ sudo yunohost service add jicofo -l /var/log/jitsi/jvb.log
|
||||||
# TODO : logrotate
|
# TODO : logrotate
|
||||||
# TODO : hook to monit
|
# TODO : hook to monit
|
||||||
|
|
||||||
|
|
||||||
#--- Install Jireco daemon ---
|
#--- Install Jireco daemon ---
|
||||||
# TODO for later...
|
# TODO for later...
|
||||||
|
|
||||||
|
@ -160,9 +156,8 @@ sudo openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj \
|
||||||
-keyout /var/lib/metronome/$jitsi_domain.key \
|
-keyout /var/lib/metronome/$jitsi_domain.key \
|
||||||
-out /var/lib/metronome/$jitsi_domain.crt
|
-out /var/lib/metronome/$jitsi_domain.crt
|
||||||
|
|
||||||
|
# TODO : adduser headless with python pexpect ?
|
||||||
# sudo metronomectl register focus auth.$jitsi_domain $YNH_YOURSECRET3
|
sudo metronomectl adduser focus@auth.$jitsi_domain # $YNH_YOURSECRET3
|
||||||
|
|
||||||
|
|
||||||
#--- Configure Nginx ---
|
#--- Configure Nginx ---
|
||||||
# remove trailing '/'. this leaves '/something' untouched, but changes '/' to ''
|
# remove trailing '/'. this leaves '/something' untouched, but changes '/' to ''
|
||||||
|
@ -170,6 +165,8 @@ path=${path%/}
|
||||||
sed -i "s@YNH_LOCATION@$path@g" ../conf/nginx.conf
|
sed -i "s@YNH_LOCATION@$path@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jitsi.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jitsi.conf
|
||||||
|
|
||||||
|
# TODO : subdir support
|
||||||
|
|
||||||
sudo service metronome reload
|
sudo service metronome reload
|
||||||
sudo service jitsi-videobridge restart
|
sudo service jitsi-videobridge restart
|
||||||
sudo service jicofo restart
|
sudo service jicofo restart
|
||||||
|
|
Loading…
Reference in a new issue