convert-vesta-to-myvesta.sh

This commit is contained in:
myvesta 2019-09-29 19:23:25 +02:00 committed by GitHub
commit 50cc5d5b35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
#!/bin/bash
# *** Debian only ***
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
apt update
apt install -y vesta vesta-php vesta-nginx
service vesta stop
service vesta start