Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix installation failure on xenial #4
Conversation
| @@ -45,7 +46,10 @@ def config_changed(): | ||
| def install_packages(workload): | ||
| config = hookenv.config() | ||
| hookenv.status_set('maintenance', 'Installing packages') | ||
| - packages = ['apache2', 'php5-cgi', 'libapache2-mod-php5'] | ||
| + if lsb_release()['DISTRIB_CODENAME'].lower() >= 'xenial': |
ktsakalozos
Feb 13, 2017
Member
The '>=' operator on the string looks funny. Will this code keep working when the distribution names cycle?
nobuto-m
Feb 13, 2017
Contributor
Right. I have pushed another revision with "16.04" instead of "xenial".
ktsakalozos
merged commit 54c633c
into
juju-solutions:master
Feb 15, 2017
|
The patch looks good but the layer might need some updates. |
nobuto-m
deleted the
nobuto-m:xenial
branch
Feb 21, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nobuto-m commentedJun 13, 2016
•
Edited 1 time
-
nobuto-m
Jun 13, 2016
PHP 5.x is no longer available for xenial or newer.
Fixes #3