remove trailing emtpy line from jk_socketd.ini
This commit is contained in:
parent
4c688b2bc6
commit
7afc8ad284
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user