Created
October 22, 2015 11:41
-
-
Save rondinelisaad/78bde55b666b4dc94214 to your computer and use it in GitHub Desktop.
Macaw update script
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
!#/bin/sh | |
WEB_PATH=/var/www/macaw_bhlscielo_org | |
WEB_USER=apache | |
echo CHDIR | |
pushd /tmp | |
echo CLEAN | |
rm -fr macaw-book-metadata-tool-master | |
echo CURL | |
curl -O -L https://github.com/cajunjoel/macaw-book-metadata-tool/archive/master.zip | |
echo UNZIP | |
unzip -q master.zip | |
cd macaw-book-metadata-tool-master | |
echo COPY | |
sudo cp -a * $WEB_PATH | |
echo CHOWN | |
chown -R $WEB_USER $WEB_PATH | |
chmod -R 775 $WEB_PATH | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment