Last active
October 27, 2018 03:24
-
-
Save dgershman/b2b123c1cd88c5a9c107a84528b4522b to your computer and use it in GitHub Desktop.
upgrade a BMLT installation
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
echo "Deleting previous archived version" | |
rm -rf old_main_server/ | |
echo "Moving previous version to be archived version." | |
mv main_server/ old_main_server/ | |
echo "Moving new version to be the current one." | |
mv new_main_server/ main_server/ | |
echo "You can now view the site under http://[bmlt-host]/main_server." |
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
echo "Deleting older zip if it is there" | |
rm BMLT-Root-Server.zip | |
rm -rf new_main_server | |
echo "Downloading the newest version" | |
wget "https://github.com/LittleGreenViper/BMLT-Root-Server/raw/master/BMLT-Root-Server.zip" | |
echo "Unpacking..." | |
unzip BMLT-Root-Server.zip -d temp/ | |
echo "Moving from temporary location to migration path" | |
mkdir new_main_server | |
mv temp/main_server/* new_main_server | |
echo "Removing temporary location" | |
rm -rf temp/ | |
echo "Fixing permissions" | |
chown -R www-data: new_main_server/ | |
echo "You can now access this migrated site at http://[bmlt-host]/new_main_server, once you have validated run ./complete.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment