#! /bin/bash sipsak --help > /dev/null if [ "$?" == "0" ]; then echo "===== Sipsak is already installed ===="; chmod +s /usr/bin/sipsak exit 0; fi . /usr/src/mor/sh_scripts/install_configs.sh . /usr/src/mor/sh_scripts/mor_install_functions.sh #=== INSTALLING sipsak ====== echo "===INSTALLING SIPSAK===" which_os if [ "$OS" == "DEBIAN" ]; then apt-get install sipsak; elif [ "$OS" == "CENTOS" ]; then download_packet sipsak-0.9.6-1.tar.gz extract_gz sipsak-0.9.6-1.tar.gz cd sipsak-0.9.6 ./configure make cp sipsak /usr/bin/ fi chmod +s /usr/bin/sipsak sipsak --help > /dev/null if [ "$?" == "0" ]; then echo "===== Sipsak was installed successfully ===="; else echo "===== Sipsak installation failed!!!!!!!!===="; wait_user #if installation have failed - stop if stops are enabled. fi #============================