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