From c9b86d74015d24846303233be5afb2afad3a80b2 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 28 Nov 2024 19:53:53 +0100 Subject: [PATCH] corrections echo import data model --- README.md | 14 +++++++++----- bin/add-site/install_directus.sh | 2 +- bin/add-site/set_url.sh | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4fe90c1..487a9b6 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ Deployment [**D**ebian](https://www.debian.org/) (os) + [**D**ocker](https://www.docker.com/) (containerization) + [**C**addy](https://caddyserver.com/) (webserver) + [**D**irectus](https://directus.io/) (cms) + [**N**uxt](https://nuxt.com/) (static front). -Installation +## Installation On a fresh install as root user using -sudo passwd root +`sudo passwd root` -su - root +`su - root` - Upgrade +Upgrade -apt update && apt upgrade -y \ No newline at end of file +`apt update && apt upgrade -y` + +## TODO + +Staging server with password \ No newline at end of file diff --git a/bin/add-site/install_directus.sh b/bin/add-site/install_directus.sh index 0cddf19..2912651 100644 --- a/bin/add-site/install_directus.sh +++ b/bin/add-site/install_directus.sh @@ -64,7 +64,7 @@ docker network connect web "${DOMAIN_NAME}_Directus" echo -e "${PURPLE}${BOLD}Import Directus data model ? (y/N) ${RESET}" read answer if [[ "$answer" == "y" ]]; then - echo -e "${PURPLE}${BOLD}Import local Directus data model${RESET}" + echo -e "${PURPLE}${BOLD}Make sure your local Directus is the latest version${RESET}" echo -e "${BLUE}npx directus schema snapshot ./snapshot.yaml${RESET}" echo -e "${BLUE}scp -P ${SSH_PORT} /local/path/to/snapshot.yaml ${USERNAME}@${IP}:/home/${USERNAME}/snapshot.yaml${RESET}" echo -e "${PURPLE}${BOLD}Press any key when done${RESET}" diff --git a/bin/add-site/set_url.sh b/bin/add-site/set_url.sh index 7ebd4b4..78443b7 100644 --- a/bin/add-site/set_url.sh +++ b/bin/add-site/set_url.sh @@ -7,7 +7,7 @@ check_global_const 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 "${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 \ No newline at end of file