18 lines
444 B
Bash
18 lines
444 B
Bash
#!/bin/bash
|
|
|
|
. bin/env-setup.sh
|
|
|
|
echo -e "${PURPLE}${BOLD}Deployment Debian + Docker + Caddy + Directus + Nuxt${RESET}"
|
|
|
|
if [ "$(dirname "$(readlink -f "$0")")" != "$(pwd)" ]; then
|
|
echo "Please run this script from its directory."
|
|
exit
|
|
fi
|
|
|
|
# First install, root only
|
|
echo -e "${PURPLE}${BOLD}First server installation${RESET}"
|
|
. bin/first_install.sh
|
|
|
|
# Install website
|
|
echo -e "${PURPLE}${BOLD}Install website${RESET}"
|
|
. bin/add_site.sh |