rc systemd: Make sure files are in the systemd directory

Fixes #2272
This commit is contained in:
Frank LENORMAND 2018-08-01 10:51:10 +03:00
parent a6da34e192
commit 099ad2319f

View File

@ -6,4 +6,9 @@
hook global BufCreate .*/systemd/.+\.(automount|conf|link|mount|network|path|service|slice|socket|target|timer) %{
set-option buffer filetype ini
# NOTE: INI files define the commenting character to be `;`, which won't work in `systemd` files
hook -once buffer BufSetOption comment_line=.+ %{
set-option buffer comment_line "#"
}
}