1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash set -e cleanup_sshd_config() { rm -f "/etc/ssh/sshd_config.d/50-cloud-init.conf" } if [ "$1" = "purge" ]; then cleanup_sshd_config fi