mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
add/delete symlink for softaculous
This commit is contained in:
parent
2b5d7d3c98
commit
5a1fb95d5d
2 changed files with 10 additions and 0 deletions
|
@ -105,6 +105,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
|
||||
fi
|
||||
|
||||
# Updating SOFTACULOUS value
|
||||
if [ -z "$(grep SOFTACULOUS $VESTA/conf/vesta.conf)" ]; then
|
||||
echo "SOFTACULOUS='yes'" >> $VESTA/conf/vesta.conf
|
||||
|
|
|
@ -27,6 +27,11 @@ fi
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Deleting symlink
|
||||
if [ -e "$VESTA/web/softaculous" ]; then
|
||||
rm -f $VESTA/web/softaculous
|
||||
fi
|
||||
|
||||
# Updating SOFTACULOUS value
|
||||
sed -i "s/SOFTACULOUS.*/SOFTACULOUS='no'/g" \
|
||||
$VESTA/conf/vesta.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue