1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00
navidrome_ynh/scripts/remove
Éric Gaspar 67d16cd5c8
Testing (#98)
* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Disable the activity panel that hangs some browsers (#86)

* Testing (#84)

* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Disable the activity panel that hangs some browsers

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update manifest.json

* Auto-update README

* Auto-update README

* 0.49.0_

* Auto-update README

* Add enable sharing to config panel

* #85

* Update change_url

* 0.49.1

* Update manifest.json

* Auto-update README

* Update manifest.json

* Update manifest.json

* Update install

* Update upgrade

* Update upgrade

* Update manifest.json

* 0.49.2

* Auto-update README

* cleaning

* Auto-update README

* Auto-update README

* 0.49.3

* Auto-update README

* Version 2 (#97)

* v2

* v2

* v2

* v2

* Auto-update README

* v2

* Update upgrade

* Update upgrade

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update navidrome.toml

* Update config_panel.toml

* Fix

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* cleaning

* Auto-update README

---------

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com>
2023-02-16 19:21:12 +01:00

55 lines
1.8 KiB
Bash

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
ynh_script_progression --message="Removing $app service integration..." --weight=1
yunohost service remove $app
fi
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
# Remove the dedicated systemd config
ynh_remove_systemd_config
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=5
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
#=================================================
ynh_script_progression --message="Removing various files..." --weight=6
# Remove the config directory securely
ynh_secure_remove --file="/var/lib/$app"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last