Skip to content

Commit 5a1fb95

Browse files
author
Serghey Rodin
committed
add/delete symlink for softaculous
1 parent 2b5d7d3 commit 5a1fb95

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bin/v-add-vesta-softaculous

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ if [ ! -e "$VESTA/softaculous/vst_installed" ]; then
105105
touch $VESTA/softaculous/vst_installed
106106
fi
107107

108+
# Adding symlink
109+
if [ ! -e "$VESTA/web/softaculous" ]; then
110+
ln -s $VESTA/softaculous/vesta $VESTA/web/softaculous
111+
fi
112+
108113
# Updating SOFTACULOUS value
109114
if [ -z "$(grep SOFTACULOUS $VESTA/conf/vesta.conf)" ]; then
110115
echo "SOFTACULOUS='yes'" >> $VESTA/conf/vesta.conf

bin/v-delete-vesta-softaculous

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ fi
2727
# Action #
2828
#----------------------------------------------------------#
2929

30+
# Deleting symlink
31+
if [ -e "$VESTA/web/softaculous" ]; then
32+
rm -f $VESTA/web/softaculous
33+
fi
34+
3035
# Updating SOFTACULOUS value
3136
sed -i "s/SOFTACULOUS.*/SOFTACULOUS='no'/g" \
3237
$VESTA/conf/vesta.conf

0 commit comments

Comments
 (0)