Skip to content

Instantly share code, notes, and snippets.

@kasisnu
Created August 19, 2014 15:30
Show Gist options
  • Select an option

  • Save kasisnu/745bb4518fbf94ae9252 to your computer and use it in GitHub Desktop.

Select an option

Save kasisnu/745bb4518fbf94ae9252 to your computer and use it in GitHub Desktop.

Revisions

  1. kasisnu created this gist Aug 19, 2014.
    20 changes: 20 additions & 0 deletions make_me_some_panels.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/usr/bin/env bash
    #
    # This shell script downloads drupal 7 and quickifies the setup for Suchi's L&L
    #
    #


    drush dl drupal --drupal-project-rename='LLPanels'
    cd LLPanels
    echo "Enter your mysql username:"
    read mysql_username
    echo "Enter your mysql password(I do not speak out loud!):"
    read -s mysql_password
    echo "Give the database a fancy name..?"
    read mysql_db_name
    drush site-install standard --db-url=mysql://$mysql_username:$mysql_password@localhost/$mysql_db_name --site-name='LLPanels'
    drush dl -y ctools panels devel views references
    drush en -y ctools views views_ui devel devel_generate
    echo -e "The admin password is generated randomly. Run \n\n\t\tdrush uli admin --uri=/path/to/site/install\n\nto generate a one time login."
    echo "You did totally awesome! We're done here"