deployment_ddcdn_multisite/bin/add-site/set_url.sh

14 lines
569 B
Bash

#!/bin/bash
echo -e "${PURPLE}${BOLD}Enter the domain name of the website${RESET}"
read DOMAIN_NAME
check_global_const IP
# @TODO : Automate the DNS configuration with OVH api
echo -e "${PURPLE}${BOLD}Configure the ${DOMAIN_NAME} DNS ZONE as the following${RESET}"
echo -e "${BLUE}Domain : ${DOMAIN_NAME} | Type : A | Target : ${IP}${RESET}"
echo -e "${BLUE}Domain : cms.${DOMAIN_NAME} | Type : A | Target : ${IP}${RESET}"
echo -e "${BLUE}Domain : www.${DOMAIN_NAME} | Type : A | Target : ${IP}${RESET}"
echo -e "${PURPLE}${BOLD}Press any key when done${RESET}"
read