From 68b00217cafd54dc2a33b4a8b235fffbda955830 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 10 Jun 2007 18:20:39 +0000 Subject: [PATCH] Fix astdb handling (#1295) SVN-Revision: 7545 --- net/asterisk/files/asterisk.init | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/asterisk/files/asterisk.init b/net/asterisk/files/asterisk.init index 378897875..f506b0c1e 100644 --- a/net/asterisk/files/asterisk.init +++ b/net/asterisk/files/asterisk.init @@ -9,10 +9,9 @@ start() { [ -f $DEFAULT ] && . $DEFAULT [ -d /var/run ] || mkdir -p /var/run [ -d /var/log/asterisk ] || mkdir -p /var/log/asterisk - [ -d /var/spool/asterisk ] || { - mkdir -p /var/spool/asterisk - ln -s /usr/lib/asterisk/astdb /var/spool/asterisk/astdb - } + [ -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 /usr/sbin/asterisk $OPTIONS } -- 2.30.2