Correctly symlink astdb for first time running or upgrading (#1295)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 1 Jul 2007 09:20:01 +0000 (09:20 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 1 Jul 2007 09:20:01 +0000 (09:20 +0000)
SVN-Revision: 7818

net/asterisk/files/asterisk.init

index f506b0c..7abbd75 100644 (file)
@@ -11,7 +11,7 @@ start() {
        [ -d /var/log/asterisk ] || mkdir -p /var/log/asterisk
        [ -d /var/spool/asterisk ] || mkdir -p /var/spool/asterisk
        [ -f /usr/lib/asterisk/astdb ] && mv /usr/lib/asterisk/astdb /var/spool/asterisk/astdb
-       [ -h /usr/lib/asterisk/astdb ] || ln -s /var/spool/asterisk/astdb /usr/lib/asterisk/astdb
+       [ -h /usr/lib/asterisk/astdb ] || ln -sf /var/spool/asterisk/astdb /usr/lib/asterisk/astdb
        /usr/sbin/asterisk $OPTIONS
 }