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