mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
small fixes for softaculous plugin enable/disable
This commit is contained in:
parent
e986e48baf
commit
351d2a78cf
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
if [ ! -e "$VESTA/web/softaculous" ]; then
|
||||
ln -s $VESTA/softaculous/vesta $VESTA/web/softaculous
|
||||
# Enabling symlink
|
||||
if [ -e "$VESTA/disabled_plugins/softaculous" ]; then
|
||||
if [ ! -e "$VESTA/web/softaculous" ]; then
|
||||
mv $VESTA/disabled_plugins/softaculous $VESTA/web/softaculous
|
||||
fi
|
||||
fi
|
||||
|
||||
# Updating SOFTACULOUS value
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue