Viewing File vm-upgrade.sh of 0.02.33a
|
1: #!/bin/bash 2: # FreeNATS vm-upgade.sh : VM Specific Upgrader 3: # Copyright 2008 PurplePixie Systems, All Rights Reserved 4: # Part of the FreeNATS Package released under the GNU GPL v3 5: # See http://www.purplepixie.org/freenats for more information 6: # 7: 8: if [ "$1" == "dummy" ]; then 9: VM_DUMMY="1" 10: else 11: VM_DUMMY="0" 12: fi 13: 14: echo "Upgrading Virtual Machine..." 15: if [ "$VM_DUMMY" == "1" ]; then 16: echo "-- Dummy Run --" 17: fi 18: echo 19: if [ ! -f "shell-install.sh" ]; then 20: echo "shell-install.sh not found - must be in the same directory" 21: echo "and have the same working directory!" 22: echo 23: exit 0 24: fi 25: 26: FN_WEB="/srv/www/html/" 27: export FN_WEB 28: 29: echo 30: echo "The upgrade process will now call the upgrade script with values" 31: echo "pre-set for the FreeNATS rPath Virtual Appliance. You need only" 32: echo "press return four times (to specify upgrade and to accept the" 33: echo "three default directories." 34: echo 35: echo "Once this process is complete you will need to follow the instructions" 36: echo "on the screen to upgrade your database schema (if required)." 37: echo 38: echo -n "Proceed with upgrade (y/N): " 39: read proccheck 40: if [ "$proccheck" != "y" ]; then 41: echo 42: echo "Upgrade Aborted at User Request" 43: echo 44: FN_WEB="" 45: export FN_WEB 46: exit 0 47: fi 48: echo "Proceeding with upgrade..." 49: echo 50: 51: 52: if [ "$VM_DUMMY" == "1" ]; then 53: ./shell-install.sh dummy 54: else 55: ./shell-install.sh 56: fi 57: 58: FN_WEB="" 59: export FN_WEB 60: