From 8e89bcbf95ce40ced9b2580665c6f9e9128cf671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sn=C3=ADda=C5=88ov=C3=BD=20Mistr?= Date: Sun, 3 Mar 2024 21:22:43 +0100 Subject: [PATCH] =?UTF-8?q?Konfigura=C4=8Dn=C3=AD=20skript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.sh b/configure.sh index 23e6bc6..876170d 100755 --- a/configure.sh +++ b/configure.sh @@ -8,21 +8,21 @@ read -p "Host databáze [localhost]: " db_host read -p "Port databáze [5432]: " db_port read -p "Uživatelské jméno: " db_user -if [ -z ${db_user} ] +if [ "$db_user" == "" ] then echo "Uživatelské jméno je povinné" exit 1 fi read -p "Heslo: " db_password -if [ -z ${db_password} ] +if [ "$db_user" == "" ] then echo "Heslo je povinné" exit 1 fi read -p "Jméno databáze: " db_name -if [ -z ${db_name} ] +if [ "$db_name" == "" ] then echo "Jméno databáze je povinné" exit 1 @@ -35,14 +35,14 @@ read -p "Číslo databáze [0]: " redis_db echo "# Konfigurace stránky" read -p "Jméno stránky: " site_name -if [ -z ${site_name} ] +if [ "$site_name" == "" ] then echo "Jméno stránky je povinné" exit 1 fi read -p "Popis stránky: " site_description -if [ -z ${site_description} ] +if [ "$site_description" == "" ] then echo "Popis stránky je povinný" exit 1