forked from ungleich-public/cdist
cleanup file and issue type
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
6d38ae5f11
commit
8d8d7da036
2 changed files with 4 additions and 6 deletions
|
@ -23,15 +23,12 @@
|
|||
#
|
||||
|
||||
. cdist-config
|
||||
set -e
|
||||
|
||||
pwd -P >&2
|
||||
ls >&2
|
||||
|
||||
type="$(cat type)"
|
||||
mode="$(cat mode)"
|
||||
path="$(cat path)"
|
||||
|
||||
path="$(cat destination)"
|
||||
|
||||
case "$type" in
|
||||
directory)
|
||||
|
@ -49,6 +46,7 @@ case "$type" in
|
|||
|
||||
esac
|
||||
|
||||
if [ "$mode" ]; then
|
||||
if [ -f mode ]; then
|
||||
mode="$(cat mode)"
|
||||
echo chmod \"$mode\" \"$path\"
|
||||
fi
|
||||
|
|
|
@ -31,4 +31,4 @@ case "$(cat "$__cdist_out_explorers/os")" in
|
|||
esac
|
||||
|
||||
# FIXME: replace id with $destination post-1.0
|
||||
__file etc-issue --source "$source" --destination "$destination"
|
||||
__file etc-issue --source "$source" --destination "$destination" --type file
|
||||
|
|
Loading…
Reference in a new issue