From 0bef01eb8573a6a688f35bd26e14fef2cd1a555b Mon Sep 17 00:00:00 2001 From: Robert Nasarek Date: Fri, 17 Sep 2021 11:42:46 +0200 Subject: [PATCH] Update install_wisski.bash Add question for securing mariadb --- install_wisski.bash | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install_wisski.bash b/install_wisski.bash index 7ae66f4..f2cb7f7 100755 --- a/install_wisski.bash +++ b/install_wisski.bash @@ -156,8 +156,15 @@ sleep 1 systemctl restart apache2 # run mariadb security script -echo -e "${YELLOW}Making Mariadb secure. Please note your root credentials!${NC}" -mysql_secure_installation; +echo -e "${YELLOW}Do you want to secure Mariadb? (Y/n) ${NC}" +read SECUREMARIADB +if [[ $SECUREMARIADB == 'y' ]] || [[ $SECUREMARIADB == 'Y' ]] || [[ -z $SECUREMARIADB ]] +then + echo -e "${GREEN}Please note your credentials!${NC}" + sleep 2 + mysql_secure_installation; +fi + # create database user and database echo -e "${YELLOW}Create database and user for Drupal. Please note your inputs, they will be needed in a moment.${NC}"