Create install-softaculous.sh

This commit is contained in:
dpeca 2020-01-04 14:04:00 +01:00 committed by GitHub
commit 3ab4bcf6e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
#!/bin/bash
if [ -f "/usr/local/vesta/web/inc/login_url.php" ]; then
mv /usr/local/vesta/web/inc/login_url.php /usr/local/vesta/web/inc/login_url.php-bak
fi
source /etc/profile
PATH=$PATH:/usr/local/vesta/bin && export PATH
sed -i '/SOFTACULOUS/d' /usr/local/vesta/conf/vesta.conf
rm -rf /var/softaculous/
rm -rf /usr/local/vesta/softaculous/
rm -rf /usr/local/vesta/web/softaculous/
apt update
apt install --reinstall vesta-php
apt install --reinstall vesta-ioncube vesta-softaculous
service vesta stop
service vesta start
/usr/local/vesta/bin/v-add-vesta-softaculous
if [ -f "/usr/local/vesta/web/inc/login_url.php-bak" ]; then
mv /usr/local/vesta/web/inc/login_url.php-bak /usr/local/vesta/web/inc/login_url.php
fi