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
CentOS install re-worked to provide PHP7 via Remi Repository #2161
Conversation
automated install/basic-install.sh
Outdated
rpm -q ${REMI_PKG} &> /dev/null || rc=$? | ||
if [[ $rc -ne 0 ]]; then | ||
# The PHP version available via default repositories is older than version 7 | ||
if ! whiptail --defaultno --title "PHP 7 Update (recommended)" --yesno "PHP 7.x is recommended for both security and language features.\nWould you like to install PHP7 via Remi's RPM repository?\n\nSee: https://rpms.remirepo.net for more information" ${r} ${c}; then |
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.
Backslash is literal in "\n". Prefer explicit escaping: "\n".
Signed-off-by: bcambl <blayne@blaynecampbell.com>
Signed-off-by: bcambl <blayne@blaynecampbell.com>
@@ -215,16 +215,73 @@ elif command -v rpm &> /dev/null; then | |||
UPDATE_PKG_CACHE=":" | |||
PKG_INSTALL=(${PKG_MANAGER} install -y) | |||
PKG_COUNT="${PKG_MANAGER} check-update | egrep '(.i686|.x86|.noarch|.arm|.src)' | wc -l" | |||
INSTALLER_DEPS=(dialog git iproute net-tools newt procps-ng) | |||
INSTALLER_DEPS=(dialog git iproute net-tools newt procps-ng which) |
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.
INSTALLER_DEPS appears unused. Verify it or export it.
I think the bots are drunk again.. http://i.imgur.com/lj7B5sQ.gifv |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/centos-7-5-1804-php-error/9456/4 |
Is this waiting on anything? |
Should be ready to go, just needs any documentation and updates to changelog. It's probably mostly self-documenting with the whiptail dialog, but it's a change to the installer so the team should know that it's being implemented. |
Do we need to accommodate for |
It would be nice to have, probably would involve another config line in setupVars to get around the whiptail for interactive installs. |
Added release notes for PR |
What does this PR aim to accomplish?:
CentOS ships with an unsupported version of PHP.
Provide installer option to update PHP to a supported version.
See: http://php.net/supported-versions.php
How does this PR accomplish the above?:
Prompt user to enable the Remi RPM repository (default to using system default PHP version)
See: https://rpms.remirepo.net
What documentation changes (if any) are needed to support this PR?:
Documentation TBD as discussion around this change is required.