#! /bin/sh #==== Includes===================================== cd /usr/src/mor . "$(pwd)"/sh_scripts/install_configs.sh . "$(pwd)"/sh_scripts/mor_install_functions.sh #================================================== #============================================== app_mor_install() { if [ $LOCAL_INSTALL == 1 ]; then cp /usr/src/other/app_mor.so /usr/lib/asterisk/modules/ fi } #============================================== upgrade_centos() { if [ $LOCAL_INSTALL == 0 ]; then _OS=`cat /etc/redhat-release` if [ "$_OS" = "CentOS release 5 (Final)" ]; then echo "The MOR setup will try to upgrade from Centos 5.0 to Centos 5.2, make sure you reboot your system to avoid disaster later. Press any key to continue" wait_user; yum upgrade; echo "Upgrade to Centos 5.2 is now finnished. Please reboot your system and then rerun MOR install" exit; fi fi } #==============================================