[file] add alpine support
This commit is contained in:
parent
a1cb9ee869
commit
1722fced72
2 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# 2013 Steven Armstrong (steven-cdist armstrong.cc)
|
# 2013 Steven Armstrong (steven-cdist armstrong.cc)
|
||||||
|
# 2019 Nico Schottelius (nico-cdist at schottelius.org)
|
||||||
#
|
#
|
||||||
# This file is part of cdist.
|
# This file is part of cdist.
|
||||||
#
|
#
|
||||||
|
@ -33,7 +34,17 @@ mode: %Lp %Sp
|
||||||
size: %Dz
|
size: %Dz
|
||||||
links: %Dl
|
links: %Dl
|
||||||
" "$destination" | awk '/^type/ { print tolower($0); next; } { print; }'
|
" "$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
|
stat --printf="type: %F
|
||||||
owner: %u %U
|
owner: %u %U
|
||||||
|
@ -42,5 +53,5 @@ mode: %a %A
|
||||||
size: %s
|
size: %s
|
||||||
links: %h
|
links: %h
|
||||||
" "$destination"
|
" "$destination"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -3,9 +3,11 @@ Changelog
|
||||||
|
|
||||||
next:
|
next:
|
||||||
* Type __package: Add __package_apk support (Nico Schottelius)
|
* 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 __start_on_boot: Add alpine support (Nico Schottelius)
|
||||||
* Type __timezone: 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)
|
* Type __start_on_boot: gentoo: check all runlevels in explorer (Nico Schottelius)
|
||||||
* New type: __package_apk (Nico Schottelius)
|
* New type: __package_apk (Nico Schottelius)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue