1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00
invidious_ynh/scripts/remove
OniriCorpe 94b961c27d
2 new settings in the config panel (#144)
* Testing (#143)

* Thumbnails (#133)

* Update manifest.toml

* Update manifest.toml

* Update manifest.toml

* Auto-update README

---------

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

* fix

* Auto-update README

* Update manifest.toml

* Only build invidious once per install (#136)

* Thumbnails (#133) (#134)

* Thumbnails (#133)

* Update manifest.toml

* Update manifest.toml

* Update manifest.toml

* Auto-update README

---------

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

* fix

* Auto-update README

---------

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

* Only build invidious once per install

* Update manifest.toml

---------

Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update manifest.toml

* fix

* Auto-update README

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* cleaning

* Auto-update README

* update

* Auto-update README

* upgrade

* Auto-update README

* fix

* Auto-update README

* update to upstream

* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com>
Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>

* implement new parameters

* add new parameters

* fix shellcheck SC2086

* typo

* sigh an omission

* add pre upgrade message about the 2 new settings

* simplify ynh_add_config templates paths

* bad copy paste :"3

* add how to find the config panel

* add a note about the fact we can't use resources.sources instead of git

* oupsi ^^"

---------

Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com>
Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
2024-01-04 19:18:16 +01:00

48 lines
1.4 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..." --weight=1
yunohost service remove "$app"
fi
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=10
dpkg --remove crystal
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the app-specific logrotate config
ynh_remove_logrotate
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of Invidious completed" --last