Skip to content

Commit f085af4

Browse files
committed
Patch typo in motd
1 parent 76293e2 commit f085af4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Vagrantfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ VAGRANTFILE_API_VERSION = "2"
66
php7devYamlPath = File.expand_path("./php7dev.yaml")
77
afterScriptPath = File.expand_path("./scripts/customize.sh")
88
aliasesPath = File.expand_path("./aliases")
9+
diffPath = File.expand_path("./php7dev.diff")
910

1011
require_relative 'scripts/php7dev.rb'
1112

@@ -14,6 +15,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
1415
if File.exists? aliasesPath then
1516
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
1617
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
1722

1823
Php7dev.configure(config, YAML::load(File.read(php7devYamlPath)))
1924

php7dev.diff

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

0 commit comments

Comments
 (0)