Skip to content

Instantly share code, notes, and snippets.

@tizzo
Last active March 16, 2017 19:25
Show Gist options
  • Save tizzo/a3178e9ad850a882bb1cda86d5fb40d2 to your computer and use it in GitHub Desktop.
Save tizzo/a3178e9ad850a882bb1cda86d5fb40d2 to your computer and use it in GitHub Desktop.
#! /usr/bin/env bash
echo 'Installing dependencies php and git...'
echo ''
echo ''
echo ''
pkg install -y php70 git php70-json php70-ctype php70-phar php70-iconv php70-openssl
echo ''
echo ''
echo 'Dependencies installed'
echo ''
echo ''
echo 'Configuring iconv...'
echo "[iconv]" >> /usr/local/etc/php/ext-20-ctype.ini
echo "iconv.output_encoding = UTF-8" >> /usr/local/etc/php/ext-20-ctype.ini
echo "iconv.internal_encoding = UTF-8" >> /usr/local/etc/php/ext-20-ctype.ini
echo "iconv.input_encoding = UTF-8" >> /usr/local/etc/php/ext-20-ctype.ini
echo 'iconv configured'
echo 'Installing drush...'
curl https://s3.amazonaws.com/files.drush.org/drush.phar > /usr/local/bin/drush
chmod +x /usr/local/bin/drush
drush init
echo 'Drush installed'
echo 'Generating an SSH key...'
ssh-keygen
echo ''
echo ''
echo 'Please copy the following SSH key and add it to the webportal server and provide it to github as a deploy key for the webportal project'
echo ''
cat ~/.ssh/id_rsa.pub
#! /usr/bin/env bash
mkdir -p /usr/share/drush/commands
cd ~
git clone git@github.com:zivtech/fruitguys-webportal.git
cd fruitguys-webportal/docroot
mkdir ~/.drush
ln -s ~/fruitguys-webportal/docroot/sites/all/modules/fruitguys_encryption/ ~/.drush/fruitguys_encryption
Test that this is working:
drush help fruitguys-encryption-generate-csv
echo ''
echo ''
echo ''
echo 'Please move the key in LastPass into ~/fruitguys_decryption.key'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment