Kleine Pimmel Scripts


wget -q https://kps.makz.net/run/unsnapd.sh -O - | bash

#!/bin/bash
##
# Get rid of snapd & cloud-init
##
#
apt update
apt purge snapd -y
systemctl daemon-reload
if [ ! -f "/etc/apt/preferences.d/snapdisabled.pref" ]; then
cat <<EOT >> /etc/apt/preferences.d/snapdisabled.pref
Package: snapd
Pin: release a=*
Pin-Priority: -10
EOT
fi
apt purge cloud-init -y
rm -Rf /etc/cloud
echo "Please do a reboot now!"