aboutsummaryrefslogtreecommitdiff
path: root/init.d/savecache.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/savecache.in')
-rw-r--r--init.d/savecache.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/savecache.in b/init.d/savecache.in
index ea011c14..799b8bc5 100644
--- a/init.d/savecache.in
+++ b/init.d/savecache.in
@@ -14,9 +14,9 @@ start()
fi
fi
ebegin "Saving dependency cache"
- if [ ! -d "$RC_LIBDIR"/cache ]; then
- rm -rf "$RC_LIBDIR"/cache
- if ! mkdir "$RC_LIBDIR"/cache; then
+ if [ ! -d "$RC_LIBEXECDIR"/cache ]; then
+ rm -rf "$RC_LIBEXECDIR"/cache
+ if ! mkdir "$RC_LIBEXECDIR"/cache; then
eend $?
return $?
fi
@@ -26,7 +26,7 @@ start()
[ -e "$RC_SVCDIR/$x" ] && save="$save $RC_SVCDIR/$x"
done
if [ -n "$save" ]; then
- cp -p $save "$RC_LIBDIR"/cache 2>/dev/null
+ cp -p $save "$RC_LIBEXECDIR"/cache 2>/dev/null
fi
eend $?
}