vagrant-peach 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actions/configure_peach.rb +6 -4
- data/lib/vagrant-peach/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a15ee1d1b668e268c404d23ffb3be4b709f761
|
4
|
+
data.tar.gz: 52090636d6db81597476e4be15762b382f1bc3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6ac51aeed0f23def48eecc3c25a47f53e69aaa889d8b8e69f908014a082823924de3d3ee61696ef2d05401038fe98e920b85d244ee9fba4defdb156b1f213cc
|
7
|
+
data.tar.gz: 79ada70d07be3dbc503d1aa57c106624e989d044562afb531ae40c258b88f0c5d92a3309a4481674ad0d9e39941f07b88b244d44b0848b9f8caf8b95a16e6b94
|
@@ -22,13 +22,15 @@ module VagrantPeach
|
|
22
22
|
machine.communicate.upload "#{static_files}/wget", "/peach/tools/wget"
|
23
23
|
machine.communicate.upload "#{static_files}/curl", "/peach/tools/curl"
|
24
24
|
|
25
|
-
# Set the path
|
26
|
-
machine.communicate.sudo 'echo "export PATH=/peach/tools:$PATH" > /etc/profile.d/peach.sh'
|
27
|
-
|
28
25
|
# Setup the peach server
|
29
|
-
machine.communicate.
|
26
|
+
machine.communicate.sudo 'mkdir -p /etc/peach'
|
27
|
+
machine.communicate.sudo 'echo {\\"server\\":\\"10.0.2.2:5000\\"} > /etc/peach/conf.json'
|
28
|
+
|
29
|
+
# Setup the path for all server
|
30
|
+
machine.communicate.sudo %Q(sed -e 's|/peach/tools:||g' -i /etc/environment && sed -e 's|PATH="\\(.*\\)"|PATH="/peach/tools:\\1"|g' -i /etc/environment)
|
30
31
|
|
31
32
|
@app.call env
|
33
|
+
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|