1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00

scripts/remove: Cleanup useless messages

This commit is contained in:
Salamandar 2024-04-01 00:18:26 +02:00
parent a4202015cc
commit 4180e2fc3b

View file

@ -12,33 +12,27 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) # 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-server" >/dev/null if ynh_exec_warn_less yunohost service status "$app-server" >/dev/null; then
then
ynh_script_progression --message="Removing $app-server service integration..." --weight=1
yunohost service remove "$app-server" yunohost service remove "$app-server"
fi fi
if ynh_exec_warn_less yunohost service status "$app-microservices" >/dev/null if ynh_exec_warn_less yunohost service status "$app-microservices" >/dev/null; then
then
ynh_script_progression --message="Removing $app-microservices service integration..." --weight=1
yunohost service remove "$app-microservices" yunohost service remove "$app-microservices"
fi fi
if ynh_exec_warn_less yunohost service status "$app-machine-learning" >/dev/null if ynh_exec_warn_less yunohost service status "$app-machine-learning" >/dev/null; then
then
ynh_script_progression --message="Removing $app-machine-learning service integration..." --weight=1
yunohost service remove "$app-machine-learning" yunohost service remove "$app-machine-learning"
fi fi
# Remove the dedicated systemd config
ynh_remove_systemd_config --service="immich-server"
ynh_remove_systemd_config --service="immich-microservices"
ynh_remove_systemd_config --service="immich-machine-learning"
# Remove the app-specific fail2ban config # Remove the app-specific fail2ban config
ynh_remove_fail2ban_config ynh_remove_fail2ban_config
# Remove the app-specific logrotate config # Remove the app-specific logrotate config
ynh_remove_logrotate ynh_remove_logrotate
# Remove the dedicated systemd config
ynh_remove_systemd_config --service="immich-server"
ynh_remove_systemd_config --service="immich-microservices"
ynh_remove_systemd_config --service="immich-machine-learning"
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config