Skip to content

Instantly share code, notes, and snippets.

@plunix
plunix / mount.sh
Created May 29, 2019 12:45 — forked from nataz77/mount.sh
GlusterFS Clients mount
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
dpkg -s glusterfs-client &> /dev/null
if [ $? -ne 0 ]
then
echo "GlusterFS is not installed; proceeding to install"
apt update
@plunix
plunix / cleanup.sh
Created October 24, 2018 13:04 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke"
for dir in $cleanupdirs; do
echo "Removing $dir"
rm -rf $dir
done