mirror of
https://github.com/myvesta/vesta.git
synced 2025-01-10 21:12:52 -08:00
48 lines
1.2 KiB
Bash
Executable File
48 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# info: delete vesta softaculous
|
|
# options: NONE
|
|
#
|
|
# The script disables softaculous plugin
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Variable&Function #
|
|
#----------------------------------------------------------#
|
|
|
|
# Includes
|
|
source $VESTA/func/main.sh
|
|
source $VESTA/conf/vesta.conf
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Verifications #
|
|
#----------------------------------------------------------#
|
|
|
|
if [ "$SOFTACULOUS" = 'no' ] || [ -z "$SOFTACULOUS" ]; then
|
|
exit
|
|
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
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Vesta #
|
|
#----------------------------------------------------------#
|
|
|
|
# Logging
|
|
log_event "$OK" "$ARGUMENTS"
|
|
|
|
exit
|