Skip to content
Snippets Groups Projects
Commit a78f21da authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[FEATURE] Xenial compatibility

parent 239050e7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,9 @@ maintainer 'sgalinski Internet Services'
maintainer_email 'stefan@sgalinski.de'
license 'MIT'
description 'Installs/configures XDebug.'
long_description 'Installs/configures XDebug.'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.0'
issues_url 'https://gitlab.sgalinski.de/chef-cookbooks/xdebug/issues'
source_url 'https://gitlab.sgalinski.de/chef-cookbooks/xdebug'
recipe 'xdebug::default', 'Installs/configures XDebug.'
\ No newline at end of file
......@@ -22,14 +22,26 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
package 'php5-xdebug'
if node['platform_version'] == '16.04'
package 'php-xdebug'
template '/etc/php5/apache2/conf.d/xdebug.ini' do
mode '0644'
notifies :restart, 'service[apache2]', :delayed
end
template '/etc/php/7.0/fpm/conf.d/xdebug.ini' do
mode '0644'
end
template '/etc/php5/cli/conf.d/xdebug.ini' do
mode '0644'
notifies :restart, 'service[apache2]', :delayed
template '/etc/php/7.0/cli/conf.d/xdebug.ini' do
mode '0644'
notifies :restart, 'service[apache2]', :delayed
end
else
package 'php5-xdebug'
template '/etc/php5/apache2/conf.d/xdebug.ini' do
mode '0644'
end
template '/etc/php5/cli/conf.d/xdebug.ini' do
mode '0644'
notifies :restart, 'service[apache2]', :delayed
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment