From dc27d2e748dc5cb9e734e6d15870206858fbb446 Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q Date: Sat, 2 Sep 2023 00:42:51 -0500 Subject: [PATCH] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 431fa19..40ad38c 100644 --- a/install.sh +++ b/install.sh @@ -211,7 +211,7 @@ check_and_install() { app=$1 if ! dpkg -s $app 2>/dev/null | grep -q "Status: install ok installed"; then echo "$app no está instalado. Instalando..." - sudo apt-get install -y $app + apt-get install -y $app echo "$app instalado correctamente." else echo "$app ya está instalado." @@ -223,8 +223,8 @@ for app in "${apps[@]}"; do check_and_install $app done -systemctl restart mariadb -systemctl enable mariadb +sudo systemctl restart mariadb && +sudo systemctl enable mariadb #sudo mysql_secure_installation --host=localhost --port=3306 #echo "DROP USER emqte1@localhost" | /usr/bin/mysql -u root #echo "DROP DATABASE selfcare" | /usr/bin/mysql -u root