Skip to content

Commit

Permalink
Fix queue manager permission at startup (#307)
Browse files Browse the repository at this point in the history
Launching reload with "-" simulate login so the environment isn't passed to the fwconsole reload. The subscription variables are in the environment and if they aren't seen by fwconsole qmanager assume the server isn't registered and disable qmanager
NethServer/dev#7041
  • Loading branch information
Stell0 authored Sep 27, 2024
1 parent 00f7227 commit 75c0200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freepbx/freepbx_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ php -r 'include_once "/etc/freepbx_db.conf"; $db->query("UPDATE freepbx_settings
fwconsole userman --syncall --force --verbose

# Always apply changes on start
su - asterisk -s /bin/sh -c "/var/lib/asterisk/bin/fwconsole reload"
su asterisk -s /bin/sh -c "/var/lib/asterisk/bin/fwconsole reload"

0 comments on commit 75c0200

Please sign in to comment.