mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source _common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
|
#=================================================
|
|
ynh_script_progression "Removing system configurations related to $app..."
|
|
|
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
|
if ynh_hide_warnings yunohost service status "$app.target" >/dev/null; then
|
|
yunohost service remove "$app.target"
|
|
fi
|
|
|
|
ynh_config_remove_systemd
|
|
|
|
ynh_safe_rm "/etc/tmpfiles.d/${app}.conf"
|
|
ynh_safe_rm "/run/${app}"
|
|
|
|
_ynh_remove_systemd_target
|
|
|
|
# Remove the dedicated NGINX config
|
|
ynh_config_remove_nginx
|
|
|
|
#=================================================
|
|
# REMOVE DEPENDENCIES
|
|
#=================================================
|
|
ynh_script_progression "Removing dependencies..."
|
|
|
|
# Remove metapackage and its dependencies
|
|
ynh_ruby_remove
|
|
ynh_nodejs_remove
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
|
|
ynh_script_progression "Removal of $app completed"
|