From 7afc8ad2846af3762183c2d7c7a1e5ae854ff1a1 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sat, 20 May 2023 12:08:08 -0700 Subject: [PATCH] remove trailing emtpy line from jk_socketd.ini --- bin/vhost-user-del.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/vhost-user-del.sh b/bin/vhost-user-del.sh index 871db94..daae361 100755 --- a/bin/vhost-user-del.sh +++ b/bin/vhost-user-del.sh @@ -88,4 +88,6 @@ fi # remove jailkit socket if it exists if grep -q "\[/usr/jails/$username/dev/log\]" /etc/jailkit/jk_socketd.ini; then sed -i "/\/usr\/jails\/$username\/dev\/log/,+3 d" /etc/jailkit/jk_socketd.ini + # remove trailing empty line from file, if it exists + sed -i '${/^$/d;}' /etc/jailkit/jk_socketd.ini fi