summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-13 14:58:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-13 14:58:29 +0000
commit6653228344ed532fe4cf2878c442ccb5fedea250 (patch)
tree2c6d4832ddefc574a63f8927f3a3ecdb1f7fb4ca
parent292789f180e446cd516e9ebc21d8c6e0db93c7b2 (diff)
downloadalpine-conf-6653228344ed532fe4cf2878c442ccb5fedea250.zip
setup-apkcache: bugfix
-rw-r--r--setup-apkcache.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-apkcache.in b/setup-apkcache.in
index 89147a3..d184214 100644
--- a/setup-apkcache.in
+++ b/setup-apkcache.in
@@ -65,7 +65,8 @@ shift $(( $OPTIND - 1 ))
# try auto detetect what we suggest
suggestion=
if [ -L /etc/apk/cache ]; then
- suggestion=$(readlink $suggestion)
+ suggestion=$(readlink /etc/apk/cache)
+fi
if [ -z "$suggestion" ] && [ -f /etc/lbu/lbu.conf ]; then
. /etc/lbu/lbu.conf