deployment_ddcdn_multisite/bin/add_site.sh

19 lines
399 B
Bash

#!/bin/bash
if [[ -z "$username" ]]; then
username=$(getent passwd 1001 | cut -d: -f1)
fi
# SET URL
echo -e "${PURPLE}${BOLD}Set url ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. bin/add-site/set_url.sh
fi
# INSTALL DIRECTUS
echo -e "${PURPLE}${BOLD}Install Directus ? (y/N) ${RESET}"
read answer
if [[ "$answer" == "y" ]]; then
. bin/add-site/install_directus.sh
fi