#!/bin/bash . bin/variables.sh . bin/functions.sh echo -e "${PURPLE}${BOLD}Enter the domain name of the website${RESET}" read DOMAIN_NAME get_ip 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 REPO_DIRECTORY="/var/www/repositories" mkdir $repo_directory chown www-data:www-data $repo_directory CMS_DIRECTORY="${repo_directory}/cms_${DOMAIN_NAME}"