Coder Social home page Coder Social logo

docker-console's People

Contributors

maciejlukianski avatar michalpotasiakdroptica avatar wodzik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-console's Issues

Change username for admin before changing password

If admin username in database is different than configuration ADMIN_USER i have error:

Drush\User\UserListException: Unable to find a matching user for [error] admin. in /app/app/vendor/drush/drush/lib/Drush/User/UserList.php:114 Stack trace: #0 /app/app/vendor/drush/drush/lib/Drush/User/UserList.php(15): Drush\User\UserList::getFromParameters(Array) #1 /app/app/vendor/drush/drush/commands/user/user.drush.inc(355): Drush\User\UserList->__construct('admin') #2 /app/app/vendor/drush/drush/includes/command.inc(422): drush_user_password('admin') #3 /app/app/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array) #4 /app/app/vendor/drush/drush/includes/command.inc(199): drush_command('admin') #5 /app/app/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array) #6 /app/app/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch() #7 /app/app/vendor/drush/drush/drush.php(12): drush_main() #8 {main}

Solution for drupal 7:
self.run('sql-query --db-prefix "update {users} set name=\'%s\' where uid=1"' % self.config.DRUPAL['default']['ADMIN_USER'])

Solution for drupal 8:
self.run('sql-query --db-prefix "update {users_field_data} set name=\'%s\' where uid=1"' % self.config.DRUPAL['default']['ADMIN_USER'])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.