mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
Fix linter
This commit is contained in:
parent
452f2cad22
commit
f0a628dc6d
3 changed files with 11 additions and 7 deletions
|
@ -32,11 +32,13 @@ domain=$(ynh_app_setting_get --app="$app" --key=domain)
|
||||||
db_name=$(ynh_app_setting_get --app="$app" --key=db_name)
|
db_name=$(ynh_app_setting_get --app="$app" --key=db_name)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD BACKUP STEPS
|
# DECLARE DATA AND CONF FILES TO BACKUP
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE APP MAIN DIR
|
# BACKUP THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Backing up the main app directory..."
|
|
||||||
|
|
||||||
backup_core_only=$(ynh_app_setting_get --app="$app" --key=backup_core_only)
|
backup_core_only=$(ynh_app_setting_get --app="$app" --key=backup_core_only)
|
||||||
# If backup_core_only have any value in the settings.yml file, do not backup the data directory
|
# If backup_core_only have any value in the settings.yml file, do not backup the data directory
|
||||||
|
@ -51,7 +53,6 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Backing up nginx web server configuration..."
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.conf"
|
||||||
|
@ -68,7 +69,6 @@ ynh_psql_dump_db --database="$db_name" > db.sql
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP SYSTEMD
|
# BACKUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Backing up systemd configuration..."
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app-beat.service"
|
ynh_backup --src_path="/etc/systemd/system/$app-beat.service"
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app-server.service"
|
ynh_backup --src_path="/etc/systemd/system/$app-server.service"
|
||||||
|
|
|
@ -212,9 +212,9 @@ chown -R "$app": "/var/log/$app"
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
yunohost service add "$app-server" --log "/var/log/$app/server.log"
|
yunohost service add "$app-server" --log="/var/log/$app/server.log"
|
||||||
yunohost service add "$app-worker" --log "/var/log/$app/worker.log"
|
yunohost service add "$app-worker" --log="/var/log/$app/worker.log"
|
||||||
yunohost service add "$app-beat" --log "/var/log/$app/beat.log"
|
yunohost service add "$app-beat" --log="/var/log/$app/beat.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -256,6 +256,10 @@ chmod -R 755 "$final_path/code/front/dist/"
|
||||||
mkdir -p "/var/log/$app"
|
mkdir -p "/var/log/$app"
|
||||||
chown -R "$app": "/var/log/$app"
|
chown -R "$app": "/var/log/$app"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
#=================================================
|
||||||
|
|
||||||
yunohost service add "$app-server" --log="/var/log/$app/server.log"
|
yunohost service add "$app-server" --log="/var/log/$app/server.log"
|
||||||
yunohost service add "$app-worker" --log="/var/log/$app/worker.log"
|
yunohost service add "$app-worker" --log="/var/log/$app/worker.log"
|
||||||
yunohost service add "$app-beat" --log="/var/log/$app/beat.log"
|
yunohost service add "$app-beat" --log="/var/log/$app/beat.log"
|
||||||
|
|
Loading…
Reference in a new issue