From edd1f9673eb64477d22f533cd30e538663235b50 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 8 Jan 2020 14:32:34 +1300 Subject: [PATCH] Added post-install.txt. --- post-install.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 post-install.txt diff --git a/post-install.txt b/post-install.txt new file mode 100644 index 0000000..c91bf62 --- /dev/null +++ b/post-install.txt @@ -0,0 +1,7 @@ +echo "Changing ssh port..." +eval chroot /rootfs /usr/bin/sed -i -e 's/#Port 22/Port 2122/g' /etc/ssh/sshd_config 2>&1 | output_filter +if [ "${PIPESTATUS[0]}" -eq 0 ]; then + echo "OK" +else + echo "FAILED !" +fi