#!/bin/bash #================================================= # GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= source _common.sh source /usr/share/yunohost/helpers #================================================= # REMOVE USER BUT KEEP FILES #================================================= # We keep files cause we don't know what the user want to do about # backups stored in the home directory ynh_system_user_delete --username="$ssh_user" #================================================= # REMOVE CRON FILES #================================================= ynh_secure_remove "/etc/cron.d/$app" #================================================= # END OF SCRIPT #================================================= ynh_script_progression --message="Removal of $app completed" --last