Add colors to uninstall warning

This commit is contained in:
Stanislas Lange 2023-01-22 12:11:35 +01:00
parent 2f7e346767
commit d02b753677
No known key found for this signature in database

View File

@ -408,8 +408,8 @@ function revokeClient() {
function uninstallWg() { function uninstallWg() {
echo "" echo ""
echo "WARNING: This will uninstall WireGuard and remove all the configuration files!" echo -e "\n${RED}WARNING: This will uninstall WireGuard and remove all the configuration files!${NC}"
echo "Please backup the /etc/wireguard directory if you want to keep your configuration files." echo -e "${ORANGE}Please backup the /etc/wireguard directory if you want to keep your configuration files.\n${NC}"
read -rp "Do you really want to remove WireGuard? [y/n]: " -e REMOVE read -rp "Do you really want to remove WireGuard? [y/n]: " -e REMOVE
REMOVE=${REMOVE:-n} REMOVE=${REMOVE:-n}
if [[ $REMOVE == 'y' ]]; then if [[ $REMOVE == 'y' ]]; then