Your IP : 3.139.95.110


Current Path : /usr/local/mgr5/sbin/
Upload File :
Current File : //usr/local/mgr5/sbin/ispmgr_reponame.sh

#!/bin/sh

if [ "$1" = "-T" ]; then
        echo -n "(c) Ispmanager.com"
        exit 0
fi

. /usr/local/mgr5/lib/pkgsh/core_pkg_funcs.sh

tmpfile=/tmp/$$.repo

# script only for separate core

if [ "${OSTYPE}" = "REDHAT" ]; then
        wget -q -O ${tmpfile} "http://download.ispmanager.com/repo/centos/ispmanager.repo"
        cat ${tmpfile}
else
        wget -q -O ${tmpfile} "http://download.ispmanager.com/repo/debian/ispmanager.list"
        cat ${tmpfile} | sed -r "s/__CODENAME__/$(lsb_release -c -s)/g; s/__OSNAME__/$(lsb_release -s -i| awk '{print tolower($0)}')/g"
fi