corrections
This commit is contained in:
parent
a4215388b6
commit
65b17f38dc
|
|
@ -45,7 +45,7 @@ wait_for_DB() {
|
|||
sleep 5
|
||||
done
|
||||
echo -e "${PURPLE}${BOLD}Create DB${RESET}"
|
||||
docker exec -i "${DOMAIN_NAME}_Directus_DB" mariadb -uroot -e "CREATE DATABASE directus; GRANT ALL PRIVILEGES ON directus TO 'root'@'%';"
|
||||
docker exec -i "${DOMAIN_NAME}_Directus_DB" mariadb -uroot -e "CREATE DATABASE directus; GRANT ALL PRIVILEGES ON directus.* TO 'root'@'%';"
|
||||
docker exec -i -u root "${DOMAIN_NAME}_Directus" sh -c "chown node:node uploads/"
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
echo -e "${PURPLE}${BOLD}Import the .tar.gz archive from your local storage${RESET}"
|
||||
echo -e "${PURPLE}The archive should contain the sql dump and the upload directory${RESET}"
|
||||
echo -e "${PURPLE}Make sure the Website Directus user permissions are setup${RESET}"
|
||||
echo -e "${BLUE}scp -P ${ssh_port} /local/path/to/archive.tar.gz ${username}@${ip}:/home/${username}/${RESET}"
|
||||
echo -e "${BLUE}scp -P ${SSH_PORT} /local/path/to/archive.tar.gz ${USERNAME}@${IP}:/home/${username}/${RESET}"
|
||||
echo -e "${PURPLE}${BOLD}Press any key when done${RESET}"
|
||||
read
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue