Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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