-
-
Notifications
You must be signed in to change notification settings - Fork 501
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 | ownCloud/Nextcloud: Improve installation and configuration - Phase II #1261
Conversation
…e locking and: + Cleaned Nextcloud configuration by providing variable to config.php. + Added php module installation for rare cases, where in past DietPi versions first PHP was installed (==2), then Redis (==2) and now ownCloud/Nextcloud. In that cases php(5)-redis would have been not installed.
Decided to give Redis priority, since it produces warnings on admin panel of ownCloud and the benefit is obvious: I see quite often questions/reports about wrong locked files on help.nextcloud.com where file locking is left to database. Do we want this also on dietpi-update? We could do the whole procedure, or "simply" reinstall Nextcloud and ownCloud. At the moment webserver configs would be overwritten and, more problematic, beta versions of Nextcloud/ownCloud, that got installed from zip or internal updater (on beta branch) would be overwritten. The latter could least to problems, as downgrading is not supported because of possibly changed database table structure. I could/should do the installation case sensitive, based on existence of ownCloud/Nextcloud folder. For a clean reinstallation, user would need to uninstall first. |
In these cases, where stable patching existing installations is too risky (outside of our control, too many possibilities that we simply cant test all of them for), the only thing we can do is mention it in the changelog eg:
|
@Fourdee €: Answered it by myself: |
…fresh installations
Added: We will adjust MySQL settings to be prepared for potential 4-byte support in every case. At least ownCloud will then enable 4-byte support via config.php automatically on occ installation/first run. If installation was really fresh (no ownCloud/Nextcloud database existed) before occ installation, we will ensure use of 4-byte support afterwards. To check: Might there be any other application that has problems with MySQL barracuda table format? But I am pretty sure, that this is just an internal thing that does not influence 'external' database requests. |
…writing any existing files
Added:
|
Added: |
Added: |
@Fourdee |
I'am going to focus/finish up v159 this week (Stretch RPi), aim for release Sunday. If you can confirm your able to do all required testing for this PR, before Sunday, let me know and i'll merge? |
@Fourdee: |
Legend 👍 |
We need to check for file exist before running grep:
|
@Fourdee Check is included in grep there but with &> /dev/null: |
https://github.com/Fourdee/DietPi/issues/1067