From c14cc7a7a10a4538216d2de6784200a90b4b8a02 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 28 Jun 2023 11:12:52 +0200 Subject: [PATCH] Fix removal of mountpoint --- debian/post.install.ovh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/post.install.ovh.sh b/debian/post.install.ovh.sh index 15f6e2b..2841a26 100755 --- a/debian/post.install.ovh.sh +++ b/debian/post.install.ovh.sh @@ -37,8 +37,8 @@ apt --assume-yes install -- wget # Remove last partition with all free space umount /mnt/free lvremove --force /dev/mapper/vg-free -/bin/rmdir --force -- /mnt/free -/bin/sed --in-place -- ';/mnt/free;d' /etc/fstab +/bin/rmdir -- /mnt/free +/bin/sed --in-place -- '/\/mnt\/free/d' /etc/fstab # Allow root connection with password /bin/sed --in-place -- 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config