remove 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. #=================================================
  3. # GENERIC START
  4. #=================================================
  5. # IMPORT GENERIC HELPERS
  6. #=================================================
  7. source _common.sh
  8. source /usr/share/yunohost/helpers
  9. #=================================================
  10. # REMOVE SYSTEM CONFIGURATIONS
  11. #=================================================
  12. ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
  13. # Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
  14. if ynh_exec_warn_less yunohost service status $app >/dev/null
  15. then
  16. ynh_script_progression --message="Removing $app service integration..." --weight=1
  17. yunohost service remove $app
  18. fi
  19. # Remove the dedicated systemd config
  20. ynh_remove_systemd_config
  21. # Remove the dedicated NGINX config
  22. ynh_remove_nginx_config
  23. # Remove NodeJS
  24. ynh_remove_nodejs
  25. #=================================================
  26. # END OF SCRIPT
  27. #=================================================
  28. ynh_script_progression --message="Removal of $app completed" --last