File: cloud-init.postrm

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (11 lines) | stat: -rw-r--r-- 153 bytes parent folder | download | duplicates (5)
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