From a962a3b342cbf3375b15ab4778f129501bea3b75 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 25 Feb 2024 23:20:03 +0100 Subject: [PATCH] www-data 7 --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d6ca960..25d01cb 100644 --- a/install.sh +++ b/install.sh @@ -340,7 +340,7 @@ if [[ "$answer" == "y" ]]; then echo -e "${BLUE}git checkout -b prod${RESET}" echo -e "${BLUE}git add . && git commit -m "first commit to prod"${RESET}" echo -e "${BLUE}git push origin prod${RESET}" - echo -e "${PURPLE}${BOLD}What is the .git url of the repo${RESET}" + echo -e "${PURPLE}${BOLD}Enter the .git url of the repo${RESET}" read repo_url front_folder=$(echo "$repo_url" | sed 's#.*/\([^/]*\)\.git#\1#') @@ -357,6 +357,8 @@ if [[ "$answer" == "y" ]]; then echo \"URL=https://${domain_name}\" >> .env &&\ echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env" $username + mkdir /var/www/.nuxtrc + chown -R www-data:www-data /var/www/.nuxtrc chown -R www-data:www-data /home/$username/$front_folder su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\