-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Some enhancement for Baikal #3789
Conversation
According BaiKal installation guide, webserver directory would need to be owned by www-data:www-data - https://sabre.io/baikal/install/ According BaiKal upgrade guide, whole Specific as well as config directories, would need to be protected to be overwritten. - https://sabre.io/baikal/upgrade/
looks like I've done something wrong as my PR contains some of your older commits 🤔 |
Your PR is based on |
yes indeed, I created it against |
Switching the base branch does not update the files in the head branch. But as said it's okay, only the CodeFactor warnings are annoying as this has been all gone through and fixed just in Okay lets go into content:
There is a lot more we need to do:
|
ok than we would need to grand access to |
I'll do installs both ways (source build with composer compared to pre-build release) and compare the result. Reminder: https://dietpi.com/phpbb/viewtopic.php?p=1502#p1502
|
Hi, I need to say, i should have checked it better before raising the PR I did one more installation test.
|
Yes I also found the chown in config step already. What was really necessary is the chown of the config dir since this is new. In the past the config was in the |
Going with the release archive seems to be the slim/cleaned up option that is more suitable for end users and follows the official install instructions:
We'll go with that 👍. |
Okay, last but not least the webserver config to harden access restrictions. Testing🈯 VM Stretch Lighttpd |
Ready from my side, I'll merge. Great to have it given some general updates and enhancement. |
I thought it would be an easy enhancement but turned into a full redevelopment. 🙄 Well done @MichaIng |
Adding |
ok probably we would need to perform some more adjustements. I tried the upgrade path from 0.6.1 to 0.7.1 using the new Ok I bypassed this and finished installation. Opening the website after a reboot will bring back the Baikal installer, which is expected due to the changes from 0.6 to 0.7. I followed the small installer but ended up with following
And indeed, whole DB information are missing within
Will run some more tests on the upgrade path 0.6 > 0.7. |
Ah makes sense to not attempt to migrate a directory that does not exist. Yes not only the new config dir has been added but also the config file name and type has changed. It was php before, now it is yaml, no chance to migrate from our end. I would have hoped for an automated migration by Baikal itself, e.g. it detects the old config file in Opening the website without new config file does not trigger the initial setup when you open the web UI right? There is a flag file in |
https://github.com/sabre-io/Baikal/releases/tag/0.7.0 Fix for not attempting to migrate nonexistent directories: 1181e46 |
Yes it will be done mostly automatically while opening admin panel first time after update. However my new configuration file was empty afterwards. Will run some more test. |
ok I did one more test on upgrading from 0.6 to 0.7 but it's resulting on the same empty baikal.yaml attached. Click to expand!
Maybe an issue on Baikal update process. 🤔 But good news, your fix for nonexistent EDIT: Yap indeed an issue on Baikal side. There are a couple of reports on their GitHub. Some of them reporting same issue with empty |
Many thanks for testing and research. Maybe we can help a bid fixing that at Baikal. I am wondering what the differences are between this web UI setup on fresh install an on migration. I'd have suggested that in both cases, when hitting "Save changes" exactly the same is done, but obviously that is not the case. And that makes me worry that similar issues could happen when you want to change database settings on an already setup instance just via web UI settings. |
Okay, I found (as fast as I was able to follow the code) two migration issues which basically match those two reports:
Both issues seem to be fixed with: sabre-io/Baikal#979 |
let's hope it will reach master branch soon, to have this fixed before releasing DietPi 6.33 |
Fix has been merged upstream: sabre-io/Baikal#979 |
Oki let me do some testing for the entire upgrade path. |
still empty
I guess we would need to wait for a new release to be published. |
Ah that fix has not yet been released: https://github.com/sabre-io/Baikal/releases |
Status: ready
According BaiKal installation guide, webserver directory would need to be owned by
www-data:www-data
According BaiKal upgrade guide, whole
Specific
as well asconfig
directories, would need to be protected to be overwritten.Commit list/description: