mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
fix(systemd-rest+docker): Use keepdir to install empty /var directories.
Not only is this the safer way of installing empty directories but we can now leverage keepdir to repopulate missing items in var.
This commit is contained in:
parent
42f161d1ba
commit
be4215fec0
@ -32,6 +32,7 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
dosbin ${S}/systemd-rest
|
||||
keepdir /var/lib/${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_enable_service multi-user.target ${PN}.service
|
||||
}
|
||||
|
||||
@ -31,6 +31,7 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
dosbin ${S}/systemd-rest
|
||||
keepdir /var/lib/${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_enable_service multi-user.target ${PN}.service
|
||||
}
|
||||
|
||||
@ -32,9 +32,8 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
dobin ${S}/bin/${PN}
|
||||
dodir /var/lib/docker
|
||||
dodir /var/lib/docker/graph
|
||||
dodir /var/lib/docker/containers
|
||||
keepdir /var/lib/${PN}/graph
|
||||
keepdir /var/lib/${PN}/containers
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_enable_service multi-user.target ${PN}.service
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user