import directus db 12

This commit is contained in:
Valentin 2024-04-17 18:24:40 +02:00
parent 5c88a81e5d
commit f69856792d
1 changed files with 1 additions and 6 deletions

View File

@ -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