Skip to content

Instantly share code, notes, and snippets.

@dgershman
Last active October 27, 2018 03:24
Show Gist options
  • Save dgershman/b2b123c1cd88c5a9c107a84528b4522b to your computer and use it in GitHub Desktop.
Save dgershman/b2b123c1cd88c5a9c107a84528b4522b to your computer and use it in GitHub Desktop.
upgrade a BMLT installation
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."
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