summarylogtreecommitdiffstats
path: root/sheepit-client.install
diff options
context:
space:
mode:
Diffstat (limited to 'sheepit-client.install')
-rw-r--r--sheepit-client.install6
1 files changed, 5 insertions, 1 deletions
diff --git a/sheepit-client.install b/sheepit-client.install
index ef6ab2c0657..b611d967794 100644
--- a/sheepit-client.install
+++ b/sheepit-client.install
@@ -1,4 +1,8 @@
post_install() {
systemd-sysusers sheepit-client.conf
- [[ -d /var/lib/sheepit-client ]] || install -dm 700 -o sheepit-client -g sheepit-client /var/lib/sheepit-client
+}
+
+post_upgrade() {
+ [[ -d /var/lib/sheepit-client ]] && echo "sheepit-client now uses /var/cache/sheepit-client as a default cache directory. You may want to remove /var/lib/sheepit-client."
+ [[ -d /var/cache/sheepit-client ]] || install -dm 755 -o sheepit-client -g sheepit-client /var/cache/sheepit-client
}