summarylogtreecommitdiffstats
path: root/sheepit-client.install
diff options
context:
space:
mode:
authorGeoffrey Frogeye2017-04-30 09:53:05 +0200
committerGeoffrey Frogeye2017-04-30 09:53:05 +0200
commit7ace1aaeaa5a09881176e439734e395274d4f0fd (patch)
treeaf4a63c63033ffbdd3cf9960e696e5103f3a8e16 /sheepit-client.install
parent149fb4e871a847507f16e99c82e54ee2d3a024a1 (diff)
downloadaur-7ace1aaeaa5a09881176e439734e395274d4f0fd.tar.gz
Update for 5.0
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
}