1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jitsi_ynh.git synced 2024-09-03 19:35:57 +02:00
This commit is contained in:
Éric Gaspar 2024-09-02 17:10:31 +02:00
parent 409e01c08a
commit 053b99eba6
4 changed files with 2 additions and 25 deletions

View file

@ -19,7 +19,7 @@ userdoc = "https://jitsi.org/user-faq/"
code = "https://github.com/jitsi/jitsi-meet" code = "https://github.com/jitsi/jitsi-meet"
[integration] [integration]
yunohost = ">= 11.2.18" yunohost = ">= 11.2.29"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = false multi_instance = false

View file

@ -43,9 +43,6 @@ ynh_script_progression "Setting up source files..."
_setup_sources _setup_sources
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 750 "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:$app" "$install_dir"
#================================================= #=================================================
# REPLACE JNIWRAPPER FOR ARMHF ARCHITECTURE IN JITSI-VIDEOBRIDGE # REPLACE JNIWRAPPER FOR ARMHF ARCHITECTURE IN JITSI-VIDEOBRIDGE
#================================================= #=================================================
@ -119,7 +116,6 @@ ynh_script_progression "Configuring Jitsi-Meet..."
mkdir -p "/etc/$app/meet" mkdir -p "/etc/$app/meet"
ynh_config_add --template="jitsi-meet-config.js" --destination="/etc/$app/meet/$domain-config.js" ynh_config_add --template="jitsi-meet-config.js" --destination="/etc/$app/meet/$domain-config.js"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 644 "/etc/$app/meet/$domain-config.js"
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
@ -147,9 +143,6 @@ yunohost service add "$app-jicofo" --log "/var/log/$app/$app-jicofo.log"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_config_add_logrotate ynh_config_add_logrotate
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:" "/var/log/$app"
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R 770 "/var/log/$app"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================

View file

@ -21,9 +21,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 750 "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:$app" "$install_dir"
#================================================= #=================================================
# CONFIGURE PROSODY # CONFIGURE PROSODY
#================================================= #=================================================
@ -72,7 +69,6 @@ ynh_restore "/etc/logrotate.d/$app"
#================================================= #=================================================
ynh_restore "/etc/$app/" ynh_restore "/etc/$app/"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 644 "/etc/$app/meet/$domain-config.js"
ynh_restore "/var/log/$app/" ynh_restore "/var/log/$app/"

View file

@ -16,12 +16,7 @@ ynh_systemctl --service="$app-jicofo" --action="stop" --log_path="/var/log/$app/
#================================================= #=================================================
ynh_script_progression "Ensuring downward compatibility..." ynh_script_progression "Ensuring downward compatibility..."
# If max_memory doesn't exist, create it and set to default 75 mb value ynh_app_setting_set_default --key=max_memory --value=200
# FIXMEhelpers2.1: maybe replace with: ynh_app_setting_set_default --key=max_memory --value=200
if [ -z "${max_memory:-}" ]; then
max_memory=200
ynh_app_setting_set --key=max_memory --value="$max_memory"
fi
gpasswd --add prosody "$app" gpasswd --add prosody "$app"
gpasswd --add www-data "$app" gpasswd --add www-data "$app"
@ -33,9 +28,6 @@ ynh_script_progression "Upgrading source files..."
_setup_sources _setup_sources
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 750 "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:$app" "$install_dir"
#================================================= #=================================================
# REPLACE JNIWRAPPER FOR ARMHF ARCHITECTURE IN JITSI-VIDEOBRIDGE # REPLACE JNIWRAPPER FOR ARMHF ARCHITECTURE IN JITSI-VIDEOBRIDGE
#================================================= #=================================================
@ -82,7 +74,6 @@ ynh_config_add --template="jitsi-jicofo-logging.properties" --destination="/etc/
ynh_script_progression "Configuring Jitsi-Meet..." ynh_script_progression "Configuring Jitsi-Meet..."
ynh_config_add --template="jitsi-meet-config.js" --destination="/etc/$app/meet/$domain-config.js" ynh_config_add --template="jitsi-meet-config.js" --destination="/etc/$app/meet/$domain-config.js"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 644 "/etc/$app/meet/$domain-config.js"
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
@ -110,9 +101,6 @@ yunohost service add "$app-jicofo" --log "/var/log/$app/$app-jicofo.log"
# Use logrotate to manage app-specific logfile(s) # Use logrotate to manage app-specific logfile(s)
ynh_config_add_logrotate ynh_config_add_logrotate
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R "$app:" "/var/log/$app"
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R 770 "/var/log/$app"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================