Skip to content

Instantly share code, notes, and snippets.

Last active March 16, 2017 19:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
#! /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 > /usr/local/bin/drush
chmod +x /usr/local/bin/drush
drush init
echo 'Drush installed'
echo 'Generating an SSH key...'
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/
#! /usr/bin/env bash
mkdir -p /usr/share/drush/commands
cd ~
git clone
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