mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-06 20:59:08 +00:00
Update removal scripts
This commit is contained in:
12
remove.sh
12
remove.sh
@@ -67,18 +67,18 @@ if [ -f ./scripts/remove_nginx.sh ]; then
|
||||
. ./scripts/remove_nginx.sh
|
||||
fi
|
||||
|
||||
### Remove MySQL ###
|
||||
if [ -f ./scripts/remove_mariadb.sh ]; then
|
||||
echo ""
|
||||
. ./scripts/remove_mariadb.sh
|
||||
fi
|
||||
|
||||
### Remove PHP & FPM ###
|
||||
if [ -f ./scripts/remove_php.sh ]; then
|
||||
echo ""
|
||||
. ./scripts/remove_php.sh
|
||||
fi
|
||||
|
||||
### Remove MySQL ###
|
||||
if [ -f ./scripts/remove_mariadb.sh ]; then
|
||||
echo ""
|
||||
. ./scripts/remove_mariadb.sh
|
||||
fi
|
||||
|
||||
### Remove PHP & FPM ###
|
||||
if [ -f ./scripts/remove_memcached.sh ]; then
|
||||
echo ""
|
||||
|
||||
@@ -83,16 +83,6 @@ if [[ -n $(command -v nginx) ]]; then
|
||||
. "${SCRIPTS_DIR}/remove_nginx.sh"
|
||||
fi
|
||||
|
||||
# Remove Mysql service if exists.
|
||||
if [[ -n $(command -v mysqld) ]]; then
|
||||
warning -e "\nMariaDB (MySQL) database server already installed. Should we remove it?"
|
||||
echo "Backup your database before continue!"
|
||||
|
||||
# shellchechk source=scripts/remove_mariadb.sh
|
||||
# shellcheck disable=SC1091
|
||||
. "${SCRIPTS_DIR}/remove_mariadb.sh"
|
||||
fi
|
||||
|
||||
# Remove PHP & FPM service if exists.
|
||||
PHPv=${DEFAULT_PHP_VERSION:-"7.4"}
|
||||
|
||||
@@ -105,6 +95,16 @@ if [[ -n $(command -v "php${PHPv}") ]]; then
|
||||
. "${SCRIPTS_DIR}/remove_php.sh" "${PHPv}"
|
||||
fi
|
||||
|
||||
# Remove Mysql service if exists.
|
||||
if [[ -n $(command -v mysqld) ]]; then
|
||||
warning -e "\nMariaDB (MySQL) database server already installed. Should we remove it?"
|
||||
echo "Backup your database before continue!"
|
||||
|
||||
# shellchechk source=scripts/remove_mariadb.sh
|
||||
# shellcheck disable=SC1091
|
||||
. "${SCRIPTS_DIR}/remove_mariadb.sh"
|
||||
fi
|
||||
|
||||
# Remove default lemper account if exists.
|
||||
USERNAME=${LEMPER_USERNAME:-"lemper"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user