fix __file usage in __issue and add redhat support
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
b11941bdaf
commit
f94b39c22b
2 changed files with 6 additions and 3 deletions
3
conf/type/__issue/files/redhat
Normal file
3
conf/type/__issue/files/redhat
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Red Hat Enterprise Linux Server (cdist-automated)
|
||||||
|
Kernel \r on an \m
|
||||||
|
|
|
@ -23,12 +23,12 @@ destination=/etc/issue
|
||||||
source="$(cat "out/explorer/os")"
|
source="$(cat "out/explorer/os")"
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
archlinux)
|
archlinux|redhat)
|
||||||
source="$__type/files/archlinux"
|
source="$__type/files/$os"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
source="$__type/files/default"
|
source="$__type/files/default"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
__file "$destination" --source "$source" --type file
|
__file "$destination" --source "$source"
|
||||||
|
|
Loading…
Reference in a new issue