Skip to content

Instantly share code, notes, and snippets.

@michelve
Created July 12, 2017 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelve/d7066e1550db02b824a8c2d78f590aba to your computer and use it in GitHub Desktop.
Save michelve/d7066e1550db02b824a8c2d78f590aba to your computer and use it in GitHub Desktop.
Install phpmyadmin with PilotKit 3.5.0 +
#!/bin/bash
DIRECTORY="/Applications/PilotKit/Sites"
cd ${DIRECTORY}
#
if [ -d "$DIRECTORY" ]; then
echo 'removing existing directory phpmyadmin'
rm -rf ${DIRECTORY}/phpmyadmin
else
echo 'skipping directory check'
fi
echo "downloading phpmyadmin"
curl -# -o phpmyadmin.zip https://files.phpmyadmin.net/phpMyAdmin/4.7.2/phpMyAdmin-4.7.2-all-languages.zip
echo "unzipping files"
unzip phpmyadmin.zip
echo "cleaning up"
rm phpmyadmin.zip
mv phpMyAdmin-4.7.2-all-languages phpmyadmin
echo "Enter computer password:"
sudo chmod 777 /Applications/PilotKit/cache
mkdir /Applications/PilotKit/cache/phpmyadmin
sudo chmod 777 /Applications/PilotKit/cache/phpmyadmin
cp /Applications/PilotKit/core/shell/phpmyadmin/config.inc.php /Applications/PilotKit/Sites/phpmyadmin/config.inc.php
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment