remove 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # STANDARD REMOVE
  11. #=================================================
  12. # REMOVE SERVICE INTEGRATION IN YUNOHOST
  13. #=================================================
  14. # Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
  15. if ynh_exec_warn_less yunohost service status $app >/dev/null
  16. then
  17. ynh_script_progression --message="Removing $app service integration..." --weight=1
  18. yunohost service remove $app
  19. fi
  20. # Remove the dedicated systemd config
  21. ynh_remove_systemd_config
  22. # Remove the dedicated NGINX config
  23. ynh_remove_nginx_config
  24. # Remove NodeJS
  25. ynh_remove_nodejs
  26. #=================================================
  27. # END OF SCRIPT
  28. #=================================================
  29. ynh_script_progression --message="Removal of $app completed" --last