Your IP : 216.73.216.155


Current Path : /usr/local/ispmgr/sbin/
Upload File :
Current File : //usr/local/ispmgr/sbin/ISPmanager-install.sh

#!/bin/sh

if test -x /usr/bin/fetch; then
	fetch="/usr/bin/fetch -o "
elif test -x /usr/bin/wget; then
	fetch="/usr/bin/wget -O "
elif test -x /usr/bin/curl; then
	fetch="/usr/bin/curl -o "
else
	echo "ERROR: no fetch program found."
	exit 1
fi

if test -f /etc/selinux/config; then
    seset=` cat /etc/selinux/config | grep -ve '#.*' | grep -e 'SELINUX *=' | awk -F= '{print $2}' | awk '{gsub(/^ +| +$/,"")}1'`
    if [ "x$seset" != "xdisabled" ]; then
        echo "ERROR: selinux enabled."
        echo "Edit /etc/selinux/config to disable SELINUX, reboot and re-run installation."
        exit 1
    fi
fi

cd /usr/local/ispmgr
$fetch skins/userdata/mindterm.jar http://$1/mindterm.jar
if [ $? -eq 0 ]; then
	echo "extaction mindterm /mancgi/mindterm" >> etc/dist/ispmgr.conf
fi

$fetch etc/ispmgr.lic -q "http://lic.ispsystem.com/ispmgr.lic?ip=$2"

./sbin/ispinstall $2

iconv -l | cut -f1 -d\  | tr -d / > etc/filemgr.enc