diff --git a/bin/install_directus.sh b/bin/install_directus.sh index 37de007..1801bd5 100644 --- a/bin/install_directus.sh +++ b/bin/install_directus.sh @@ -16,7 +16,8 @@ if [[ -z "$CMS_DIRECTORY" ]]; then fi echo "set -g default-shell /bin/sh" >> /etc/tmux.conf -su -s /bin/bash -c "mkdir ${CMS_DIRECTORY}" www-data +mkdir "$CMS_DIRECTORY" +chown www-data:www-data "$CMS_DIRECTORY" echo -e "${PURPLE}${BOLD}Import the Directus database ? (y/N) ${RESET}" read answer diff --git a/bin/install_node.sh b/bin/install_node.sh index 7a5b033..675d960 100644 --- a/bin/install_node.sh +++ b/bin/install_node.sh @@ -4,7 +4,7 @@ . bin/functions.sh touch /var/www/.bashrc -mkdir /var/www/.nvm +mkdir -p /var/www/.nvm mkdir /var/www/.npm chown -R www-data:www-data /var/www diff --git a/bin/set_url.sh b/bin/set_url.sh index 5eb97d6..9348bd1 100644 --- a/bin/set_url.sh +++ b/bin/set_url.sh @@ -15,6 +15,6 @@ echo -e "${PURPLE}${BOLD}Press any key when done${RESET}" read REPO_DIRECTORY="/var/www/repositories" -mkdir $repo_directory -chown www-data:www-data $repo_directory -CMS_DIRECTORY="${repo_directory}/cms_${DOMAIN_NAME}" +mkdir $REPO_DIRECTORY +chown www-data:www-data $REPO_DIRECTORY +CMS_DIRECTORY="${REPO_DIRECTORY}/cms_${DOMAIN_NAME}"