1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00
This commit is contained in:
Éric Gaspar 2024-09-01 21:26:22 +02:00
parent 089513effc
commit e347bf4c27
4 changed files with 0 additions and 14 deletions

View file

@ -24,12 +24,9 @@ mkdir -p $install_dir/config
#=================================================
ynh_script_progression "Configuring NGINX web server..."
# Create a dedicated NGINX config
ynh_config_add --template="funkwhale_proxy.conf" --destination="/etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf"
ynh_config_add_nginx
#=================================================
# SPECIFIC SETUP
#=================================================
# CREATE DATA DIRECTORY
#=================================================
@ -114,7 +111,6 @@ popd
#=================================================
ynh_script_progression "Configuring logrotate to manage application logfiles"
# Use logrotate to manage application logfile(s)
ynh_config_add_logrotate
touch /var/log/$app/${app}-server.log
@ -135,7 +131,6 @@ yunohost service add "${app}-worker" --description="${app} celery worker" --log=
#=================================================
ynh_script_progression "Starting $app's systemd service..."
# Start a systemd service
ynh_systemctl --service="${app}-beat" --action="start" --log_path="systemd"
ynh_systemctl --service="${app}-server" --action="start" --log_path="systemd" --wait_until="Application startup complete"
ynh_systemctl --service="${app}-worker" --action="start" --log_path="systemd" --wait_until="ready"

View file

@ -9,7 +9,6 @@ source /usr/share/yunohost/helpers
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_hide_warnings yunohost service status "${app}-server" >/dev/null
then
ynh_script_progression "Removing ${app}-server service integration..."

View file

@ -1,6 +1,5 @@
#!/bin/bash
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
@ -43,7 +42,6 @@ ynh_psql_db_shell < "./db.sql"
#=================================================
ynh_script_progression "Configuring logrotate to manage application logfiles"
# Use logrotate to manage application logfile(s)
ynh_config_add_logrotate
touch /var/log/$app/${app}-server.log

View file

@ -25,7 +25,6 @@ ynh_setup_source --dest_dir="$install_dir/front" --source_id="front" --full_repl
#=================================================
ynh_script_progression "Upgrading NGINX web server configuration..."
# Create a dedicated NGINX config
ynh_config_add --template="funkwhale_proxy.conf" --destination="/etc/nginx/conf.d/$domain.d/funkwhale_proxy.conf"
ynh_config_add_nginx
@ -72,9 +71,6 @@ ynh_script_progression "Updating configuration..."
ynh_config_add --template="env.prod" --destination="$install_dir/config/.env"
#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 400 "$install_dir/config/.env"
#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 | chown $app:$app "$install_dir/config/.env"
#=================================================
# UPGRADE FUNKWHALE
#=================================================
@ -98,7 +94,6 @@ popd
#=================================================
ynh_script_progression "Configuring logrotate to manage application logfiles"
# Use logrotate to manage application logfile(s)
ynh_config_add_logrotate
touch /var/log/$app/${app}-server.log
@ -141,7 +136,6 @@ ynh_systemctl --service="${app}-worker" --action="start" --log_path="systemd" --
#=================================================
ynh_script_progression "Reconfiguring Fail2Ban..."
# Create a dedicated Fail2Ban config
ynh_config_add_fail2ban --logpath="/var/log/nginx/$domain-access.log" --failregex="<HOST>.* \"POST /api/v1/token/ HTTP/1.1\" 400 68.*$"
#=================================================