Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Dyndrilliac
Last active November 7, 2016 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dyndrilliac/9eeb2fdfadea8b2abc36e3c21a219446 to your computer and use it in GitHub Desktop.
Save Dyndrilliac/9eeb2fdfadea8b2abc36e3c21a219446 to your computer and use it in GitHub Desktop.
Frequently Used Commands for cen-4010-assignments
#!/bin/bash
#########################################
# Fix Drupal Settings Permissions #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 11/07/2016 #
#########################################
sudo chmod 755 /var/www/html/sites/default/settings.php
#!/bin/bash
#########################################
# Fix Drupal Trusted Host Patterns #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 11/07/2016 #
#########################################
sudo echo "$settings['trusted_host_patterns'] = array('^139\.62\.210\.133$',);" >> /var/www/html/sites/default/settings.php
#!/bin/bash
#########################################
# Run Drupal Initialization #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 11/07/2016 #
#########################################
sudo wget https://raw.githubusercontent.com/Dyndrilliac/cen-4010-assignments/master/shell/drupal_init.sh
sudo chmod 755 drupal_init.sh
sudo ./drupal_init.sh
sudo rm -f drupal_init.sh
sudo reboot
#!/bin/bash
#########################################
# Run Drupal Initialization #
# Author: Dyndrilliac (Matthew Boyette) #
# Date: 11/07/2016 #
#########################################
sudo wget https://raw.githubusercontent.com/Dyndrilliac/cen-4010-assignments/master/shell/module_update.sh
sudo chmod 755 module_update.sh
sudo ./module_update.sh
sudo rm -f module_update.sh
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment