summarylogtreecommitdiffstats
path: root/cpcache.install
diff options
context:
space:
mode:
Diffstat (limited to 'cpcache.install')
-rw-r--r--cpcache.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpcache.install b/cpcache.install
new file mode 100644
index 000000000000..7d2d64654a04
--- /dev/null
+++ b/cpcache.install
@@ -0,0 +1,10 @@
+post_install() {
+ systemd-sysusers cpcache.conf
+ chown cpcache:cpcache "/var/lib/cpcache"
+ mkdir -p /var/cache/cpcache/{x86,arm}/{core,extra,multilib,testing,community}/os/{i686,x86_64}/downloads
+ chown -R cpcache:cpcache "/var/cache/cpcache"
+}
+
+post_upgrade() {
+ systemd-sysusers cpcache.conf
+}