Your IP : 3.138.86.166


Current Path : /usr/local/mgr5/sbin/
Upload File :
Current File : //usr/local/mgr5/sbin/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

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