indentions, whitespace

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
remotes/origin/feature_files_export
Nico Schottelius 12 years ago
parent 8ab408f890
commit 2cfa046cdd
  1. 21
      cdist/conf/type/__issue/manifest
  2. 1
      cdist/conf/type/__ssh_authorized_key/manifest

@ -1,6 +1,6 @@
#!/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.
#
@ -24,17 +24,16 @@ destination=/etc/issue
os="$(cat "$__global/explorer/os")"
if [ -f "$__object/parameter/source" ]; then
source="$(cat "$__object/parameter/source")"
echo using $source
source="$(cat "$__object/parameter/source")"
else
case "$os" in
archlinux|redhat)
source="$__type/files/$os"
;;
*)
source="$__type/files/default"
;;
esac
case "$os" in
archlinux|redhat)
source="$__type/files/$os"
;;
*)
source="$__type/files/default"
;;
esac
fi
__file "$destination" --source "$source"

@ -64,4 +64,3 @@ require="__directory${sshpath}" \
# the line added depends on authorized_keys existence
require="__file${sshpath}/authorized_keys" __addifnosuchline sshkey --file \
"$sshpath/authorized_keys" --line "$rsa"

Loading…
Cancel
Save