From 89c834703a0df2c67dbdd55f8ca4193cd5e161ab Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 17 Apr 2024 17:44:10 +0200 Subject: [PATCH] import directus db 5 --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 94a6b02..a1f3eeb 100644 --- a/install.sh +++ b/install.sh @@ -269,7 +269,9 @@ if [[ "$answer" == "y" ]]; then echo -e "${PURPLE}${BOLD}Press any key when done${RESET}" read - tar -xzf "/home/${username}/*.tar.gz" -C "${cms_directory}" + directus_archive=$(ls /home/${username}/*.tar.gz); + + tar -xzf "/home/${username}/${directus_archive}" -C "${cms_directory}" rm "/home/${username}/*.tar.gz" sed -i "s/^\(DB_PASSWORD=\)'.*'$/\1'$db_directus_password'/" "${cms_directory}/.env"