From f69856792d597e9009ff25bbfd0c71a8cfa5fca9 Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 17 Apr 2024 18:24:40 +0200 Subject: [PATCH] import directus db 12 --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 03edc78..48c166e 100644 --- a/install.sh +++ b/install.sh @@ -280,12 +280,7 @@ if [[ "$answer" == "y" ]]; then sql_dump=$(ls ${cms_directory}/*.sql) install_pkg expect - LOAD_DIRECTUS_DB=$(expect -c " - spawn mariadb -u directus -p directus < $sql_dump - expect \"Enter password:\" - send \"$db_directus_password\r\" - ") - echo "${LOAD_DIRECTUS_DB}" >& /dev/null + mariadb -u directus -p"$db_directus_password" directus < "$sql_dump" rm $sql_dump chown -R www-data:www-data $cms_directory