[file] add alpine support

remotes/katolaz/master
Nico Schottelius 6 years ago
parent a1cb9ee869
commit 1722fced72
  1. 15
      cdist/conf/type/__file/explorer/stat
  2. 4
      docs/changelog

@ -1,6 +1,7 @@
#!/bin/sh
#
# 2013 Steven Armstrong (steven-cdist armstrong.cc)
# 2019 Nico Schottelius (nico-cdist at schottelius.org)
#
# This file is part of cdist.
#
@ -33,7 +34,17 @@ mode: %Lp %Sp
size: %Dz
links: %Dl
" "$destination" | awk '/^type/ { print tolower($0); next; } { print; }'
;;
;;
alpine)
# busybox stat
stat -c "type: %F
owner: %u %U
group: %g %G
mode: %a %A
size: %s
links: %h
" "$destination"
;;
*)
stat --printf="type: %F
owner: %u %U
@ -42,5 +53,5 @@ mode: %a %A
size: %s
links: %h
" "$destination"
;;
;;
esac

@ -3,9 +3,11 @@ Changelog
next:
* Type __package: Add __package_apk support (Nico Schottelius)
* Type __file: Add alpine support (Nico Schottelius)
* Type __hostname: Add alpine support (Nico Schottelius)
* Type __locale: Add alpine support (Nico Schottelius)
* Type __start_on_boot: Add alpine support (Nico Schottelius)
* Type __timezone: Add alpine support (Nico Schottelius)
* Type __hostname: Add alpine support (Nico Schottelius)
* Type __start_on_boot: gentoo: check all runlevels in explorer (Nico Schottelius)
* New type: __package_apk (Nico Schottelius)

Loading…
Cancel
Save