feat: remove empty_folders for good (#522)

* feat: remove empty_folders for good

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: build

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2022-06-14 14:01:31 -03:00
committed by GitHub
parent 8e17486f10
commit 1e0d944603
7 changed files with 34 additions and 67 deletions
+4 -3
View File
@@ -33,9 +33,10 @@ contents:
mode: 04755
- dst: /usr/foo/bar/something
type: dir
empty_folders:
- /var/log/whatever
- /usr/share/foo
- dst: /var/log/whatever
type: dir
- dst: /usr/share/foo
type: dir
scripts:
preinstall: ./testdata/acceptance/scripts/preinstall.sh
postinstall: ./testdata/acceptance/scripts/postinstall.sh
+4 -3
View File
@@ -25,9 +25,10 @@ contents:
- src: ./testdata/whatever.conf
dst: /etc/foo/whatever.conf
type: config
empty_folders:
- /var/log/whatever
- /usr/share/foo
- dst: /var/log/whatever
type: dir
- dst: /usr/share/foo
type: dir
scripts:
preinstall: ./testdata/acceptance/scripts/preinstall.sh
postinstall: ./testdata/acceptance/scripts/postinstall.sh
+5 -4
View File
@@ -26,9 +26,10 @@ contents:
- src: ./testdata/whatever.conf
dst: /etc/noreplace.conf
type: config|noreplace
empty_folders:
- /var/log/whatever
- /usr/share/foo
- dst: /var/log/whatever
type: dir
- dst: /usr/share/foo
type: dir
scripts:
preinstall: ./testdata/acceptance/scripts/preinstall.sh
postinstall: ./testdata/acceptance/scripts/postinstall.sh
@@ -37,4 +38,4 @@ scripts:
apk:
scripts:
preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh
+5 -4
View File
@@ -26,9 +26,10 @@ contents:
- src: ./testdata/whatever2.conf
dst: /etc/noreplace.conf
type: config|noreplace
empty_folders:
- /var/log/whatever
- /usr/share/foo
- dst: /var/log/whatever
type: dir
- dst: /usr/share/foo
type: dir
scripts:
preinstall: ./testdata/acceptance/scripts/preinstall.sh
postinstall: ./testdata/acceptance/scripts/postinstall.sh
@@ -37,4 +38,4 @@ scripts:
apk:
scripts:
preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh