asterisk-16.x: update keys directory in init script 513/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 3 Apr 2020 18:10:42 +0000 (20:10 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 3 Apr 2020 18:10:44 +0000 (20:10 +0200)
Currently the init script creates "/var/lib/asterisk/keys". But the
default keys directory is actually "/usr/share/asterisk/keys".

This commit amends the init script.

Resolves: #512

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk-16.x/Makefile
net/asterisk-16.x/files/asterisk.init

index ab0f172e05679e47c49e9ea8e53ba1a3abb827d1..20eb71c48843de7ade5772bb151337e71d040f9c 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 AST_MAJOR_VERSION:=16
 PKG_NAME:=asterisk$(AST_MAJOR_VERSION)
 PKG_VERSION:=$(AST_MAJOR_VERSION).3.0
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/asterisk/releases
index aa413fc350217e3333e4edc16edef90d0fd8d441..89c64c0633fd387dd40f21897227f8e48a9d1d46 100644 (file)
@@ -15,7 +15,7 @@ start() {
        [ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk
        [ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk
        [ -d $DEST/var/lib/asterisk ] || mkdir -p $DEST/var/lib/asterisk
-       [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
+       [ -d $DEST/usr/share/asterisk/keys ] || mkdir -p $DEST/usr/share/asterisk/keys
        [ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
 
        SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \