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
#! /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 |
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
#! /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