It's perhaps a dirty way of doing it, and I'm certainly not saying it's the best way - but it works! It basically reinstalls GitHub from scratch (with a fresh DB as well). I have included some lines that backup the old GitHub install folder and DB as as I have intention to try to update my GitLab server (that includes data) but haven't got there yet. I also thought then at least if someone doesn't read all this and does it on their existing server (with data) then all wouldn't be lost...
Ideally it'd be nice to create a TKLPatch of this, or at least a nice script that you can download and run, but until then...
Note: I am yet to try this on a server that already includes data. I hope to refine this so it will work with existing data, but for now (unless you want to build on my work) I suggest that if you have existing data, run this on a clean install and then migrate your data across (I haven't tried it but I have read about it on the GitLab wiki).
What it does:
updates package lists and upgrades all GitLab dependancies
backs up the DB
deletes (drops) the DB and recreates an emplty one
backs up the github folder (actually renames it)
Then does a more-or-less clean install (from the stable GitLab GitHub repo)
You will need your MySQL root password handy (and put it in the 3 times you will be asked).
And log in... Note that when logging into the WebUI you will need to use the default GitLab login credentials:
admin@local.host
5iveL!fe
Warning:DO NOT RERUN THE FIRSTBOOT SCRIPTS! It will break GitLab!
The next thing I plan to try is just migrating the DB (rather than dumping it and recreating it). It would also be nice to preserve the intial log in details (that you already set up). It'd be super nice to get it working with existing data... (which will rely on not destroying the DB). I'd also like to adjust the firstboot script so it's not destructive.
Ok peeps...
I have done it (sort of...)!
It's perhaps a dirty way of doing it, and I'm certainly not saying it's the best way - but it works! It basically reinstalls GitHub from scratch (with a fresh DB as well). I have included some lines that backup the old GitHub install folder and DB as as I have intention to try to update my GitLab server (that includes data) but haven't got there yet. I also thought then at least if someone doesn't read all this and does it on their existing server (with data) then all wouldn't be lost...
Ideally it'd be nice to create a TKLPatch of this, or at least a nice script that you can download and run, but until then...
Note: I am yet to try this on a server that already includes data. I hope to refine this so it will work with existing data, but for now (unless you want to build on my work) I suggest that if you have existing data, run this on a clean install and then migrate your data across (I haven't tried it but I have read about it on the GitLab wiki).
What it does:
You will need your MySQL root password handy (and put it in the 3 times you will be asked).
And that should do it...!
Now start GitLab:
And log in... Note that when logging into the WebUI you will need to use the default GitLab login credentials:
Warning: DO NOT RERUN THE FIRSTBOOT SCRIPTS! It will break GitLab!
The next thing I plan to try is just migrating the DB (rather than dumping it and recreating it). It would also be nice to preserve the intial log in details (that you already set up). It'd be super nice to get it working with existing data... (which will rely on not destroying the DB). I'd also like to adjust the firstboot script so it's not destructive.