mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-18 03:50:31 +01:00
Added cleanup.sh
This commit is contained in:
@@ -89,6 +89,7 @@ cp .tmux.conf ~/
|
||||
echo "bind -t vi-copy 'v' begin-selection" >> ~/.tmux.conf
|
||||
echo "bind -t vi-copy 'y' copy-selection" >> ~/.tmux.conf
|
||||
cp .gitconfig ~/
|
||||
cp cleanup.sh ~/
|
||||
echo '. ~/.bash_prompt' >> ~/.bashrc
|
||||
|
||||
# 8. get my vim config
|
||||
|
||||
@@ -41,6 +41,7 @@ fi
|
||||
sudo cp .bash_prompt ~/
|
||||
sudo cp .tmux.conf ~/
|
||||
sudo cp .gitconfig ~/
|
||||
cp cleanup.sh ~/
|
||||
echo '. ~/.bash_prompt' >> ~/.bashrc
|
||||
|
||||
# 7. get my vim config
|
||||
|
||||
@@ -68,6 +68,7 @@ cp .tmux.conf ~/
|
||||
echo "bind-key -T copy-mode-vi 'v' send -X begin-selection" >> ~/.tmux.conf
|
||||
echo "bind-key -T copy-mode-vi 'y' send -X copy-selection" >> ~/.tmux.conf
|
||||
cp .gitconfig ~/
|
||||
cp cleanup.sh ~/
|
||||
echo '. ~/.bash_prompt' >> ~/.bashrc
|
||||
|
||||
# 7. get my vim config
|
||||
|
||||
8
cleanup.sh
Executable file
8
cleanup.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -x
|
||||
~/devstack/unstack.sh
|
||||
for instance in `sudo virsh list --all --name`
|
||||
do sudo virsh destroy $instance
|
||||
sudo virsh undefine $instance
|
||||
done
|
||||
sudo umount `mount | grep kube | cut -d " " -f 3`
|
||||
sudo rm -rf /var/lib/docker && sudo rm -rf /opt/stack/data
|
||||
Reference in New Issue
Block a user