mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
Update install
This commit is contained in:
parent
72d3e5bcda
commit
008c685512
1 changed files with 12 additions and 9 deletions
|
@ -42,7 +42,7 @@ focus_user="focus"
|
||||||
|
|
||||||
videobridge_user="jvb"
|
videobridge_user="jvb"
|
||||||
|
|
||||||
max_memory=75
|
max_memory=150
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
|
@ -156,7 +156,7 @@ then
|
||||||
# prepare jniwrapper comppilation
|
# prepare jniwrapper comppilation
|
||||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
|
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install automake autoconf build-essential libtool git maven m4
|
sudo apt install automake autoconf build-essential libtool git maven m4 -y
|
||||||
git clone https://github.com/sctplab/usrsctp.git
|
git clone https://github.com/sctplab/usrsctp.git
|
||||||
git clone https://github.com/jitsi/jitsi-sctp
|
git clone https://github.com/jitsi/jitsi-sctp
|
||||||
mv ./usrsctp ./jitsi-sctp/usrsctp/
|
mv ./usrsctp ./jitsi-sctp/usrsctp/
|
||||||
|
@ -189,13 +189,6 @@ do
|
||||||
ynh_secure_remove --file="$final_path/${package}_temp"
|
ynh_secure_remove --file="$final_path/${package}_temp"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $(uname -m) == "armv7l" ]
|
|
||||||
then
|
|
||||||
# rm official jniwrapper to copy
|
|
||||||
rm "$final_path/jitsi-videobridge/lib/jniwrapper-native-1.0-*"
|
|
||||||
cp "./jniwrapper/native/target/jniwrapper-native-1.0-SNAPSHOT.jar" "$final_path/jitsi-videobridge/lib/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$final_path/jitsi-meet-prosody" --source_id=mod_auth_ldap
|
ynh_setup_source --dest_dir="$final_path/jitsi-meet-prosody" --source_id=mod_auth_ldap
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -342,6 +335,16 @@ ynh_script_progression --message="Starting a systemd service..."
|
||||||
ynh_systemd_action --service_name=$app-jicofo --action="start" --log_path="/var/log/$app/$app-jicofo.log"
|
ynh_systemd_action --service_name=$app-jicofo --action="start" --log_path="/var/log/$app/$app-jicofo.log"
|
||||||
ynh_systemd_action --service_name=$app-videobridge --action="start" --log_path="/var/log/$app/$app-videobridge.log"
|
ynh_systemd_action --service_name=$app-videobridge --action="start" --log_path="/var/log/$app/$app-videobridge.log"
|
||||||
|
|
||||||
|
if [ $(uname -m) == "armv7l" ]
|
||||||
|
then
|
||||||
|
# rm official jniwrapper to copy
|
||||||
|
rm "$final_path/jitsi-videobridge/lib/jniwrapper-native-1.0-*"
|
||||||
|
cp "./jniwrapper/native/target/jniwrapper-native-1.0-SNAPSHOT.jar" "$final_path/jitsi-videobridge/lib/"
|
||||||
|
fi
|
||||||
|
# Start a systemd service
|
||||||
|
ynh_systemd_action --service_name=$app-jicofo --action="restart" --log_path="/var/log/$app/$app-jicofo.log"
|
||||||
|
ynh_systemd_action --service_name=$app-videobridge --action="restart" --log_path="/var/log/$app/$app-videobridge.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue