File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ VAGRANTFILE_API_VERSION = "2"
6
6
php7devYamlPath = File . expand_path ( "./php7dev.yaml" )
7
7
afterScriptPath = File . expand_path ( "./scripts/customize.sh" )
8
8
aliasesPath = File . expand_path ( "./aliases" )
9
+ diffPath = File . expand_path ( "./php7dev.diff" )
9
10
10
11
require_relative 'scripts/php7dev.rb'
11
12
@@ -14,6 +15,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
14
15
if File . exists? aliasesPath then
15
16
config . vm . provision "file" , source : aliasesPath , destination : "~/.bash_aliases"
16
17
end
18
+ if File . exists? diffPath then
19
+ config . vm . provision "file" , source : diffPath , destination : "/tmp/php7dev.diff"
20
+ config . vm . provision "shell" , inline : '(cd /etc && sudo patch -p1 /etc/motd < /tmp/php7dev.diff) || true'
21
+ end
17
22
18
23
Php7dev . configure ( config , YAML ::load ( File . read ( php7devYamlPath ) ) )
19
24
Original file line number Diff line number Diff line change
1
+ --- motd 2015-03-29 22:50:08.834849153 +0000
2
+ +++ /etc/motd 2015-03-29 18:42:03.274014273 +0000
3
+ @@ -1,5 +1,5 @@
4
+ php7dev image version 0.0.8
5
+ - 'makephp 7' - to update you PHP 7 build
6
+ + 'makephp 7' - to update your PHP 7 build
7
+ 'newphp 56' - to switch to PHP-5.6
8
+ Please read the documentation at https://github.com/rlerdorf/php7dev
You can’t perform that action at this time.
0 commit comments