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
Making mariadb, php and metronome optional + better integration for postgresql + add sury by default #1369
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…using, even if that's debian's default version
…he list of php-fpm versions
alexAubin
commented
Nov 2, 2021
Comment on lines
+308
to
+313
# Trigger postgresql regenconf if we may have just installed postgresql | ||
local psql_installed2="$(ynh_package_is_installed "postgresql-$PSQL_VERSION" && echo yes || echo no)" | ||
if [[ "$psql_installed" != "$psql_installed2" ]] | ||
then | ||
yunohost tools regen-conf postgresql | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(We probably gotta do something similar in case mysql was just installed, probably some stuff to configure via the regenconf ? idk, to be checked)
alexAubin
changed the title
Making mariadb, php and metronome optional + better integration for postgresql
Making mariadb, php and metronome optional + better integration for postgresql + add sury by default
Nov 15, 2021
Zblerg yolomerging because it's hell to test on the CI otherwise >_> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The problem
This is an attempt to address YunoHost/issues#1578
Solution
debian/control
, hence they'll be installed by default, but can be removed. So far this is the best design I found without falling into a legacy management hellmariadb-server
to cover the case where it could have been uninstalled ... Maybe a check to add in the package linter .... Postgresql is already covered (apps explicitly declare it). And PHP-fpm should automatically be handled (c.f. next items)php7.3-ldap
,php7.3-mysql
,php7.3-intl
,php7.3-curl
orphp7.3-gd
... though sometime this ain't obvious to identify if the app needs those or notynh_install_app_dependencies
will now keep a hard dependency to thephpx.y-xxx
stuff even for the default versionynh_psql_test_if_first_run
. Also this regen conf is to run automagically insideynh_install_app_dependencies
upon installation, removing the need to callynh_psql_test_if_first_run
.PR Status
Yolocommited
There may be quite a lot of places that need fix / tweaks ... For example, we may want to avoid generating DNS records for metronome if it ain't installed ... But maybe not needed for that first iteration.
Also overall so far there's no forrmal way in the code to check if optional modules are installed apart from grepping
dpkg --list
... Or no way for users to remove/reinstall packages apart from manually calling apt with the appropriate package names.How to test
Zblerg gotta try to install apps using mysql, php, or postgresql. Also try to uninstall metronome and check if things are going okay