Block Branch 5.3 - Master

Status
Not open for further replies.

wouam31

Member
Jul 1, 2022
110
15
18
Hi everyone,
Before making a mistake, I'd rather ask.
I want to lock updates to version 5.3 because currently, when I go to the Update menu, I see the Master version.

I was wondering if adding system_branch=5.3 in the /etc/fusionpbx/config.conf file would be enough.

Thanks for your feedback, and have a great day!
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
I usually use my own fork of FusionPBX and update it in a controlled environment with the master.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
178
43
49
The FusionPBX official install script puts you on the 5.3 release branch.
- https://github.com/fusionpbx/fusionpbx-install.sh/blob/master/debian/resources/config.sh

If you update the Source Code from the web interface in Advanced -> Upgrade you will only get bug and security fixes from the release branch you are on. So in your terminology, you are locked to the release branch.

You aren't on the master branch. To get on the master branch right now requires either changing the config.sh file before the installation or use a git command to switch branches. When the next release occurs it will require a command to switch to the new release branch.
 

wouam31

Member
Jul 1, 2022
110
15
18
Hello everyone, since the installation is already in progress, if I want to stick with version 5.3, I need to run:

git checkout 5.3

And for the next version, I'll do another git checkout.

@markjcrane , do you think it might be possible in the future to select the version via the web interface?

Thanks, everyone!
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
178
43
49
If you run this command
cd /var/www/fusionpbx
git branch

It will tell you what branch you are on. If it indicates you are on 5.3, you are already on the right branch. If it says 5.2 or master then run the following.
git pull
git checkout 5.3
 

wouam31

Member
Jul 1, 2022
110
15
18
Hi!
Thanks for the information. I followed the steps, and I am indeed on version 5.3.
 

wouam31

Member
Jul 1, 2022
110
15
18
tried to perform an update through the web page today.

When I start the update, I get this error:

Results - Source Code

hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: update_ref failed for ref 'HEAD': cannot update the ref 'refs/heads/5.3': unable to append to '.git/logs/refs/heads/5.3': Permission denied
Updating 9cc6d4577..7308ae1a5
Fast-forward

I’m currently on version 5.3.
Capture d’écran 2024-10-19 à 15.48.22.png

Capture d’écran 2024-10-19 à 15.48.45.png

Does anyone have any idea?

Thanks, everyone!
 
Status
Not open for further replies.