www-data 7

This commit is contained in:
Valentin 2024-02-25 23:20:03 +01:00
parent d40c72f607
commit a962a3b342
1 changed files with 3 additions and 1 deletions

View File

@ -340,7 +340,7 @@ if [[ "$answer" == "y" ]]; then
echo -e "${BLUE}git checkout -b prod${RESET}" 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 add . && git commit -m "first commit to prod"${RESET}"
echo -e "${BLUE}git push origin 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 read repo_url
front_folder=$(echo "$repo_url" | sed 's#.*/\([^/]*\)\.git#\1#') front_folder=$(echo "$repo_url" | sed 's#.*/\([^/]*\)\.git#\1#')
@ -357,6 +357,8 @@ if [[ "$answer" == "y" ]]; then
echo \"URL=https://${domain_name}\" >> .env &&\ echo \"URL=https://${domain_name}\" >> .env &&\
echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env" $username 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 chown -R www-data:www-data /home/$username/$front_folder
su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\ su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\