]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
safe_asterisk: Change directory permissions to 755
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 11 Sep 2023 16:19:41 +0000 (10:19 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 13 Sep 2023 15:17:11 +0000 (15:17 +0000)
If the safe_asterisk script detects that the /var/lib/asterisk
directory doesn't exist, it now creates it with 755 permissions
instead of 770.  safe_asterisk needing to create that directory
should be extremely rare though because it's normally created
by 'make install' which already sets the permissions to 755.

Resolves: #316

contrib/scripts/safe_asterisk

index 66213a530dd4a000fdd26f592616038e8fb4eaa3..02c13733fb4328fab89c053c7d837b36d8da847c 100644 (file)
@@ -97,7 +97,7 @@ else
 
        if test ! -d "${ASTVARRUNDIR}"; then
                mkdir -p "${ASTVARRUNDIR}"
-               chmod 770 "${ASTVARRUNDIR}"
+               chmod 755 "${ASTVARRUNDIR}"
        fi
 
 fi