diff options
author | Roy Marples <roy@marples.name> | 2009-05-29 14:15:12 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-05-29 14:15:12 +0100 |
commit | 83e82c452e89bf27de2a7b01bc2356c9050b2a18 (patch) | |
tree | a4f8843c7c02a6b51abb06a16f0a9a6665facc71 /init.d/savecache.in | |
parent | 9c5faf231ccf50695270034ab63f747fa2bef1d7 (diff) | |
parent | a518d34549fd80268e9c70d2300808b63c54825c (diff) |
Merge branch 'master' of ssh://roy.marples.name/var/git/openrc
Diffstat (limited to 'init.d/savecache.in')
-rw-r--r-- | init.d/savecache.in | 8 |
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 $? } |