Skip to content

Instantly share code, notes, and snippets.

View davit's full-sized avatar

Davit davit

  • Web Intelligence
  • Tbilisi
View GitHub Profile
@davit
davit / .gitignore
Created May 17, 2015 18:49
Drupal .gitignore file example
# Ignore configuration files that may contain sensitive information.
sites/*/*settings*.php
# Ignore paths that contain generated content.
files/
sites/*/files
sites/*/private
# Ignore default text files
robots.txt
@davit
davit / create-vhosts.sh
Last active August 29, 2015 14:21
Creates a virtual host for a given domain
#!/bin/bash
domain=$1
serverRoot=$2
createRootFolder=$3
vhostPath=/etc/apache2/sites-available/
vhostFile=${domain}.conf
function print_usage {
@davit
davit / create-drupal.sh
Last active August 29, 2015 14:21
Install Drupal and create virtual host for it - requires 'create-vhosts' script to be installed.
#!/bin/bash
accountName=$1
accountPass=$2
dbUserName=$3
dbPass=$4
dbName=$5
siteName="$6"
contextRoot=$7
drupalVer=$8
@davit
davit / install-drupal8.sh
Last active March 25, 2016 11:21
An interactive command line drupal 8 installer
#!/bin/bash
# Interactive drupal installation
### Allow only root users to use the script
if [ "$EUID" -ne 0 ]; then
echo "Script must be run as a root."
exit 1
fi