Update install_wisski.bash

Add question for securing mariadb
This commit is contained in:
Robert Nasarek 2021-09-17 11:42:46 +02:00 committed by GitHub
parent 3e4f98f4f1
commit 0bef01eb85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,8 +156,15 @@ sleep 1
systemctl restart apache2 systemctl restart apache2
# run mariadb security script # run mariadb security script
echo -e "${YELLOW}Making Mariadb secure. Please note your root credentials!${NC}" 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; mysql_secure_installation;
fi
# create database user and database # 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}" echo -e "${YELLOW}Create database and user for Drupal. Please note your inputs, they will be needed in a moment.${NC}"