import directus db 12
This commit is contained in:
parent
5c88a81e5d
commit
f69856792d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue