-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanup.sh
executable file
·49 lines (38 loc) · 1.04 KB
/
cleanup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
# Copyright (c) 2016 IBM Corp.
#
# All Rights Reserved.
#
# Note(dkehn): this should be set by the caller.
PROJECT_NAME=${PROJECT_NAME:-"icp"}
PROG=$(basename $0)
# Make sure custom grep options don't get in the way
unset GREP_OPTIONS
# NOTE(dkehn): uncomment for debug puposes.
# set -x xtrace
VERBOSE="True"
# Sanitize language settings to avoid commands bailing out
# with "unsupported locale setting" errors.
unset LANG
unset LANGUAGE
LC_ALL=C
export LC_ALL
# Make sure umask is sane
umask 022
# Not all distros have sbin in PATH for regular users.
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
# Keep track of the project directory
TOP_DIR=$(cd $(dirname "$0") && pwd)
echo "cleanup......"
rm -rf ~/bin
minikube delete
rm ~/.minikube
sudo rm /usr/local/bin/docker-machine
sudo rm /usr/local/bin/docker-machine-driver-kvm*
sudo rm /usr/local/bin/kubectl
sudo rm /usr/local/bin/minikube
ls -l /usr/local/bin
sudo gpasswd -d dkehn docker
sudo gpasswd -d dkehn libvirtd
sudo gpasswd -d dkehn libvirt
echo "Completed in $SECONDS seconds"