From 5e5c7d70152145c0b34c7e7311628e0e3d619be6 Mon Sep 17 00:00:00 2001 From: Conan_Doyl Date: Tue, 18 Aug 2020 17:06:39 +0200 Subject: [PATCH] Added grant option to user --- lamp-headless.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lamp-headless.sh b/lamp-headless.sh index ea21b4b..aa1dc53 100644 --- a/lamp-headless.sh +++ b/lamp-headless.sh @@ -69,7 +69,7 @@ install_Debian9(){ echo -e "\n\e[92mConfiguring MariaDB...\e[39m" echo "CREATE USER '$DBUSER'@'localhost' IDENTIFIED BY '$DBPASS'; - GRANT ALL PRIVILEGES ON nextcloud.* TO '$DBUSER'@'localhost'; + GRANT ALL PRIVILEGES ON nextcloud.* TO '$DBUSER'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;" > /home/LAMP.sql mysql -u root < /home/LAMP.sql @@ -162,6 +162,7 @@ if [ "$VAR_A" = "x86_64" ]; then elif [ $version -eq 16 ]; then #Ubuntu 16 echo "Ubuntu $version" + fi