remove 871 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. source _common.sh
  3. source /usr/share/yunohost/helpers
  4. #=================================================
  5. # REMOVE SYSTEM CONFIGURATIONS
  6. #=================================================
  7. ynh_script_progression "Removing system configurations related to $app..."
  8. # Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
  9. if ynh_hide_warnings yunohost service status $app >/dev/null
  10. then
  11. ynh_script_progression "Removing $app service integration..."
  12. yunohost service remove $app
  13. fi
  14. # Remove the dedicated systemd config
  15. ynh_config_remove_systemd
  16. # Remove the dedicated NGINX config
  17. ynh_config_remove_nginx
  18. # Remove NodeJS
  19. ynh_nodejs_remove
  20. #=================================================
  21. # END OF SCRIPT
  22. #=================================================
  23. ynh_script_progression "Removal of $app completed"