#!/bin/bash # Ending the migration process from Bitwarden to Vaultwarden set -u #================================================= # IMPORT GENERIC HELPERS #================================================= source /usr/share/yunohost/helpers #================================================= # SET VARIABLES #================================================= old_app="__OLD_APP__" new_app="__NEW_APP__" script_name="$0" #================================================= # DELETE OLD APP'S SETTINGS #================================================= #ynh_secure_remove --file="/etc/yunohost/apps/$old_app" yunohost app ssowatconf #================================================= # REMOVE THE OLD USER #================================================= ynh_system_user_delete --username="$old_app" #================================================= # DELETE THIS SCRIPT #================================================= echo "rm $script_name" | at now + 1 minutes