Moving to myvestacp.com

This commit is contained in:
dpeca 2019-09-29 00:50:08 +02:00 committed by GitHub
commit d1cba4e5cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,4 +10,11 @@ if [ -x "/root/vesta-patch.sh" ]; then
/root/vesta-patch.sh
fi
check_apt=$(grep -c 'vesta.hostingpanel.dev' /etc/apt/sources.list.d/vesta.list)
if [ "$check_apt" -eq 1 ]; then
wget -O - http://apt.myvestacp.com/deb_signing.key | sudo apt-key add -
codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
echo "deb http://apt.myvestacp.com/$codename/ $codename vesta" > /etc/apt/sources.list.d/vesta.list
fi
exit 0