Skip to content

Commit 5a2384b

Browse files
committed
New repo path + a couple bugfixes
1 parent 1fc8580 commit 5a2384b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

install/vst-install-ubuntu.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ os=$(head -n 1 /etc/issue | cut -f 1 -d ' ')
1616
release=$(head -n 1 /etc/issue | cut -f 2 -d ' ' )
1717
codename=$(lsb_release -cs)
1818
memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
19-
software="nginx apache2 apache2-utils apache2.2-common apache2-suexec rrdtool
19+
software="nginx apache2 apache2-utils apache2.2-common apache2-suexec-custom
2020
libapache2-mod-ruid2 libapache2-mod-rpaf libapache2-mod-fcgid bind9 idn
2121
mysql-server mysql-common mysql-client php5-common php5-cgi php5-mysql
2222
libapache2-mod-php5 vsftpd mc exim4 exim4-daemon-heavy clamav-daemon flex
2323
dovecot-imapd dovecot-pop3d phpMyAdmin awstats webalizer jwhois rssh git
2424
spamassassin roundcube roundcube-mysql roundcube-plugins apparmor-utils
25-
apache2-suexec vesta vesta-nginx vesta-php"
25+
rrdtool vesta vesta-nginx vesta-php"
2626

2727

2828
help() {
@@ -236,7 +236,7 @@ fi
236236
# Install vesta repo
237237
check_vesta_repo=$(grep $RHOST $apt_list)
238238
if [ -z "$check_vesta_repo" ]; then
239-
echo "deb http://$RHOST/ $codename free" >> $apt_list
239+
echo "deb http://$RHOST/$codename/ $codename vesta" >> $apt_list
240240
fi
241241
wget $CHOST/deb_signing.key -O deb_signing.key
242242
apt-key add deb_signing.key
@@ -258,7 +258,7 @@ mkdir -p $vst_backups/clamav
258258
mkdir -p $vst_backups/spamassassin
259259
mkdir -p $vst_backups/vsftpd
260260
mkdir -p $vst_backups/bind
261-
mkdir -p $vst_backups/vesta/admin
261+
mkdir -p $vst_backups/vesta
262262
mkdir -p $vst_backups/home
263263

264264
# Backup sudoers
@@ -332,7 +332,10 @@ fi
332332
# Backup vesta
333333
service vesta stop > /dev/null 2>&1
334334
if [ -e '/usr/local/vesta' ]; then
335-
mv /usr/local/vesta/* $vst_backups/vesta/
335+
cp -r /usr/local/vesta/* $vst_backups/vesta/
336+
apt-get -y remove vesta*
337+
apt-get -y purge vesta*
338+
rm -rf /usr/local/vesta
336339
fi
337340

338341

0 commit comments

Comments
 (0)