Đặt pass cho tài khoản admin (đăng nhập drupal sau này)
read -rsp "Nhập mật khẩu tài khoản admin Drupal: " DR5_XML_ADMIN_PASS
echo
Nhập pass cho user db
read -rsp "Nhập mật khẩu tài khoản admin Drupal: " DR5_XML_ADMIN_PASS
echo
Cài đặt
vendor/bin/drush site:install minimal \
--db-url="mysql://vdt:${DR5_XML_DB_PASS}@localhost/dr5_xml11" \
--site-name="Dr5-XML" \
--site-mail="admin@dr5.vn" \
--account-name="admin" \
--account-mail="admin@dr5.vn" \
--account-pass="${DR5_XML_ADMIN_PASS}" \
--yes
Sau khi thành công, cần xóa pass khỏi shell
unset DR5_XML_DB_PASS
unset DR5_XML_ADMIN_PASS
vendor/bin/drush status
- Đăng nhập để gửi ý kiến