remove 870 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. #=================================================
  3. # IMPORT GENERIC HELPERS
  4. #=================================================
  5. source _common.sh
  6. source /usr/share/yunohost/helpers
  7. #=================================================
  8. # REMOVE SYSTEM CONFIGURATIONS
  9. #=================================================
  10. ynh_script_progression "Removing system configurations related to $app..."
  11. # Remove the app-specific logrotate config
  12. ynh_config_remove_logrotate
  13. # Remove a cron file
  14. ynh_safe_rm "/etc/cron.d/$app"
  15. #REMOVEME? (Apps should not remove their log dir during remove ... this should only happen if --purge is used, and be handled by the core...) ynh_safe_rm "/var/log/$app"
  16. #=================================================
  17. # END OF SCRIPT
  18. #=================================================
  19. ynh_script_progression "Removal of $app completed"