FreePBX Update Script

~ 0 min
2021-12-01 14:51

We run this script manually monthly on all of our FreePBX installs. It performs the following actions, in order:

  • Fix FreePBX permissions and ownership (chown)
  • Refreshes the signatures
  • Upgrades all modules
  • Reloads FreePBX
  • Refresh the signatures again
  • Fix FreePBX permissions and ownership (chown) again
  • Update the OS (optional)

Script is below. We typically put it in the root, name it "pbxupdate" and chmod +x it to make it executable.

fwconsole chown
fwconsole ma refreshsignatures
fwconsole ma upgradeall
fwconsole reload
fwconsole ma refreshsignatures
fwconsole chown
read -p "Press [Enter] to update OS, or [Ctrl] + [Break] to exit."
yum update -y
Average rating 0 (0 Votes)

You cannot comment on this entry