]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - files/clever-set-domain.sh
Bump clever waiting time to 1 hour
[github/fretlink/ansible-clever.git] / files / clever-set-domain.sh
CommitLineData
f9a70541
HAL
1#!/usr/bin/env bash
2
3set -e
f7dd5848
GD
4
5function checkDomain {
df38b991
PB
6 # DNS domain names are case insensitive
7 clever domain | grep -i "${DOMAIN}"
f7dd5848
GD
8}
9
10function setDomain {
11 clever domain add "${DOMAIN}"
12}
13
14checkDomain || setDomain