Skip to content

Instantly share code, notes, and snippets.

@on7line
Forked from nakamuraos/reset-trial-navicat.sh
Created February 16, 2022 02:55
Show Gist options
  • Select an option

  • Save on7line/30cff98c77d8d80a1a1a9d54f5095ff1 to your computer and use it in GitHub Desktop.

Select an option

Save on7line/30cff98c77d8d80a1a1a9d54f5095ff1 to your computer and use it in GitHub Desktop.
Reset trial Navicat 15.x
#!/bin/bash
# Author: NakamuraOS
# https://github.com/nakamuraos
# Date: 04/12/2021
# Tested on Navicat 15.x on Linux
RED="\e[1;31m"
ENDCOLOR="\e[0m"
echo -e "${RED}"
echo -e "=================================="
echo -e "| !!! WARNING !!! |"
echo -e "=================================="
echo -e "| All data can be destroy. |"
echo -e "| Always backup before continue. |"
echo -e "=================================="
echo -e "${ENDCOLOR}"
echo "Reset trial & clear all data settings."
read -p "Are you sure? (Y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Cleaning..."
rm -rf ~/.config/dconf/user
rm -rf ~/.config/navicat/Premium
echo "Done."
else
echo "Aborted."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment