Code: Select all
cd /root
rm -rf /root/vesta
git clone https://github.com/myvesta/vesta.git
cd vesta
git reset --hard 2afbc2cddfbbc57f296640cb28d89fb29b2526c2
cp -rf /root/vesta/* /usr/local/vesta
Code: Select all
cd /root
rm -rf /root/vesta
git clone https://github.com/myvesta/vesta.git
cd vesta
git reset --hard 2afbc2cddfbbc57f296640cb28d89fb29b2526c2
cp -rf /root/vesta/* /usr/local/vesta
Code: Select all
for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
if [ ! -f "/usr/local/vesta/data/users/$user/user.conf" ]; then
continue;
fi
for domain in $(/usr/local/vesta/bin/v-list-web-domains $user plain |cut -f 1); do
echo $domain
done
done
Code: Select all
ln -s /usr/sbin/iptables-save /sbin/iptables-save