Last active
November 7, 2016 23:31
-
-
Save Dyndrilliac/9eeb2fdfadea8b2abc36e3c21a219446 to your computer and use it in GitHub Desktop.
Frequently Used Commands for cen-4010-assignments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################### | |
# Fix Drupal Settings Permissions # | |
# Author: Dyndrilliac (Matthew Boyette) # | |
# Date: 11/07/2016 # | |
######################################### | |
sudo chmod 755 /var/www/html/sites/default/settings.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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