Created
July 12, 2017 21:22
-
-
Save michelve/d7066e1550db02b824a8c2d78f590aba to your computer and use it in GitHub Desktop.
Install phpmyadmin with PilotKit 3.5.0 +
This file contains hidden or 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
#!/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