Skip to content

Commit

Permalink
fix(freepbx_init.sh): fix permissions at startup 2
Browse files Browse the repository at this point in the history
- create freepbx chown configuration file to exclude wizard
  • Loading branch information
Stell0 committed Dec 6, 2024
1 parent d6c44c4 commit 550e564
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions freepbx/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ CheckInterval: 20
EOF
fi

# create freepbx chown configuration if it doesn't exist
if [[ ! -f /etc/asterisk/freepbx_chown.conf ]]; then
cat > /etc/asterisk/freepbx_chown.conf <<EOF
[blacklist]
directory = /var/www/html/freepbx/rest
directory = /var/www/html/freepbx/visualplan
directory = /var/www/html/freepbx/wizard
EOF
fi

# configure recallonbusy
sed -i 's/^Port: .*/Port: '${ASTMANAGERPORT}'/' /etc/asterisk/recallonbusy.cfg
sed -i 's/^Username: .*/Username: proxycti/' /etc/asterisk/recallonbusy.cfg
Expand Down
4 changes: 4 additions & 0 deletions freepbx/etc/asterisk/freepbx_chown.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[blacklist]
directory = /var/www/html/freepbx/rest
directory = /var/www/html/freepbx/visualplan
directory = /var/www/html/freepbx/wizard

0 comments on commit 550e564

Please sign in to comment.