Repository navigation
fix: resolve Ubuntu 24.04 bootstrap failures and update uninstall command to remove packages as well - #7
Merged
Conversation
- Call InstallPrerequisites() during bootstrap to add ondrej/php PPA before installing PHP versions (fixes PHP 8.1/8.2 not found) - Use sudo for creating /etc/dnsmasq.d directory in DnsmasqManager (fixes permission denied on DNS setup) - Resolve dpkg architecture in Go instead of relying on shell expansion inside single quotes for Blackfire/Tideways apt sources (fixes malformed apt source list entries)
- Pre-create placeholder FPM pool before apt install to prevent "no pool defined" exit code 78 during package installation - Make InstallSodium a no-op on Ubuntu (sodium is in php-common) - Fix Blackfire PHP probe package name (blackfire-php, not blackfire-php81/82/etc) - Update Tideways repo URL to new Cloudsmith-hosted location (apt-packages-main instead of apt-packages) - Handle missing /etc/dnsmasq.conf on Ubuntu 24.04 by creating a minimal config with conf-dir directive - Add --yes flag to gpg --dearmor to avoid interactive overwrite prompt on re-runs
Adds UninstallPHP, UninstallNginx, and UninstallDnsmasq methods to the installer interface with implementations for all platforms. The existing `magebox uninstall` command gains a `--purge-packages` flag that removes system packages (PHP, Nginx, dnsmasq) in addition to MageBox components.
Replace 'http2 on;' directive (requires nginx 1.25.1+) with 'listen ... ssl http2;' syntax which works on nginx 1.9.5+ and is compatible with both Ubuntu 24.04 (nginx 1.24) and newer versions.
The file may not be world-readable on Ubuntu, causing permission denied when running magebox dns setup without sudo.
…s that version on 3306 next to a version-specific port
Contributor
|
@peterjaap approved |
This file contains hidden or 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
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.
magebox uninstallcommand gains a--purge-packagesflag that removes system packages (PHP, Nginx, dnsmasq) in addition to MageBox components