Created
February 6, 2017 09:36
-
-
Save michalskalski/8f9d903bc322bee226bbc1943ec82bfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! grep -q nfs-common "/usr/share/fuel-mirror/ubuntu.yaml"; then | |
cat > /tmp/mirror.patch << EOF | |
--- /usr/share/fuel-mirror/ubuntu.yaml.orig 2017-02-03 23:18:19.724275289 +0000 | |
+++ /usr/share/fuel-mirror/ubuntu.yaml 2017-02-03 23:17:38.732605069 +0000 | |
@@ -107,6 +107,7 @@ | |
- "msmtp-mta" | |
- "multipath-tools" | |
- "multipath-tools-boot" | |
+ - "nfs-common" | |
- "nginx" | |
- "ntp" | |
- "openssh-server" | |
EOF | |
(cd / && patch -p0) < /tmp/mirror.patch | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment