1
0
Fork 0
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:
rosbeef andino 2022-04-12 23:55:39 -04:00 committed by GitHub
parent 72d3e5bcda
commit 008c685512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ focus_user="focus"
videobridge_user="jvb"
max_memory=75
max_memory=150
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -156,7 +156,7 @@ then
# prepare jniwrapper comppilation
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
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/jitsi/jitsi-sctp
mv ./usrsctp ./jitsi-sctp/usrsctp/
@ -189,13 +189,6 @@ do
ynh_secure_remove --file="$final_path/${package}_temp"
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
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-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
#=================================================