small fixes for softaculous plugin enable/disable

This commit is contained in:
Serghey Rodin 2018-01-02 16:39:05 +02:00
parent e986e48baf
commit 351d2a78cf
2 changed files with 9 additions and 4 deletions

View file

@ -98,6 +98,8 @@ fi
# Installing softaculous
if [ ! -e "$VESTA/softaculous/vst_installed" ]; then
mkdir -p /var/softaculous
chown -R admin:admin /var/softaculous
cd $VESTA/softaculous
wget -q http://c.vestacp.com/3rdparty/softaculous_install.inc
$VESTA/php/bin/php softaculous_install.inc
@ -105,9 +107,11 @@ if [ ! -e "$VESTA/softaculous/vst_installed" ]; then
touch $VESTA/softaculous/vst_installed
fi
# Adding symlink
# Enabling symlink
if [ -e "$VESTA/disabled_plugins/softaculous" ]; then
if [ ! -e "$VESTA/web/softaculous" ]; then
ln -s $VESTA/softaculous/vesta $VESTA/web/softaculous
mv $VESTA/disabled_plugins/softaculous $VESTA/web/softaculous
fi
fi
# Updating SOFTACULOUS value

View file

@ -29,7 +29,8 @@ fi
# Deleting symlink
if [ -e "$VESTA/web/softaculous" ]; then
rm -f $VESTA/web/softaculous
mkdir -p $VESTA/disabled_plugins
mv $VESTA/web/softaculous $VESTA/disabled_plugins
fi
# Updating SOFTACULOUS value