Skip to content

Instantly share code, notes, and snippets.

@michalskalski
Created February 6, 2017 09:36
Show Gist options
  • Save michalskalski/8f9d903bc322bee226bbc1943ec82bfa to your computer and use it in GitHub Desktop.
Save michalskalski/8f9d903bc322bee226bbc1943ec82bfa to your computer and use it in GitHub Desktop.
#!/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