mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Create install-softaculous.sh
This commit is contained in:
parent
515ceb2160
commit
3ab4bcf6e8
1 changed files with 29 additions and 0 deletions
29
src/deb/for-download/tools/install-softaculous.sh
Normal file
29
src/deb/for-download/tools/install-softaculous.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue