indentions, whitespace
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
8ab408f890
commit
2cfa046cdd
2 changed files with 10 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# 2011 Nico Schottelius (nico-cdist at schottelius.org)
|
# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
|
||||||
#
|
#
|
||||||
# This file is part of cdist.
|
# This file is part of cdist.
|
||||||
#
|
#
|
||||||
|
@ -24,17 +24,16 @@ destination=/etc/issue
|
||||||
os="$(cat "$__global/explorer/os")"
|
os="$(cat "$__global/explorer/os")"
|
||||||
|
|
||||||
if [ -f "$__object/parameter/source" ]; then
|
if [ -f "$__object/parameter/source" ]; then
|
||||||
source="$(cat "$__object/parameter/source")"
|
source="$(cat "$__object/parameter/source")"
|
||||||
echo using $source
|
|
||||||
else
|
else
|
||||||
case "$os" in
|
case "$os" in
|
||||||
archlinux|redhat)
|
archlinux|redhat)
|
||||||
source="$__type/files/$os"
|
source="$__type/files/$os"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
source="$__type/files/default"
|
source="$__type/files/default"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__file "$destination" --source "$source"
|
__file "$destination" --source "$source"
|
||||||
|
|
|
@ -64,4 +64,3 @@ require="__directory${sshpath}" \
|
||||||
# the line added depends on authorized_keys existence
|
# the line added depends on authorized_keys existence
|
||||||
require="__file${sshpath}/authorized_keys" __addifnosuchline sshkey --file \
|
require="__file${sshpath}/authorized_keys" __addifnosuchline sshkey --file \
|
||||||
"$sshpath/authorized_keys" --line "$rsa"
|
"$sshpath/authorized_keys" --line "$rsa"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue