This file contains 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
This script — along with the supplied YAML files — will set up Rancher on OVH's managed Kubernetes infrastructure complete with a load balancer and an ingress controller configured with Let's Encrypt. |
This file contains 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
Place each file in /etc/network/if-up.d/ or /etc/network/if-down.d/ as appropriate, mark as executable, and name whatever you want. |
This file contains 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 [[ $# -ne 1 ]]; then | |
echo "Must only have one argument, the URL" >&2 | |
exit 1 | |
fi | |
if [[ ! -d "/var/spool/openwayback/files2/${2}" ]]; then | |
mkdir "/var/spool/openwayback/files2/${2}" | |
fi |
This file contains 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 [[ $# -ne 2 ]]; then | |
echo "Must only have two arguments, the URL and the collection" >&2 | |
exit 1 | |
fi | |
if [[ ! -d "/var/spool/openwayback/files2/${2}" ]]; then | |
mkdir "/var/spool/openwayback/files2/${2}" | |
fi |