From 76ffb246718d7ff53345bd95862a5ad737ddff43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 12 Feb 2017 13:17:55 +0100 Subject: [PATCH] removed -s parameter from read commands --- contrib/backup/functions | 8 ++++---- contrib/packager.io/functions | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/backup/functions b/contrib/backup/functions index 6e8aaae8d..0b7d45e4d 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -58,9 +58,9 @@ function check_database_config_exists () { } function restore_warning () { - echo -e "The restore will delete your current config and database!\nBe sure to have a backup available!\n" + echo -e "The restore will delete your current config and database! \nBe sure to have a backup available! \n" echo -e "Enter 'yes' if you want to proceed!" - read -s CHOOSE_RESTORE + read -p 'Restore?: ' CHOOSE_RESTORE if [ "${CHOOSE_RESTORE}" != "yes" ]; then echo "Restore aborted!" @@ -82,14 +82,14 @@ function get_restore_dates () { function choose_restore_date () { echo "Enter file date to restore: ${RESTORE_FILE_DATES}" - read -s RESTORE_FILE_DATE + read -p 'File date: ' RESTORE_FILE_DATE if [ ! -f "${BACKUP_DIR}/${RESTORE_FILE_DATE}_zammad_files.tar.gz" ];then echo "File ${BACKUP_DIR}/${RESTORE_FILE_DATE}_zammad_files.tar.gz does not exist!\nRestore aborted!" exit 1 fi echo "Enter db date to restore: ${RESTORE_DB_DATES}" - read -s RESTORE_DB_DATE + read -p 'DB date: 'RESTORE_DB_DATE if [ ! -f "${BACKUP_DIR}/${RESTORE_DB_DATE}_zammad_db.${DB_FILE_EXT}.gz" ];then echo "File ${BACKUP_DIR}/${RESTORE_DB_DATE}_zammad_files.tar.gz does not exist!\nRestore aborted!" exit 1 diff --git a/contrib/packager.io/functions b/contrib/packager.io/functions index 13dc23f76..56d34243b 100644 --- a/contrib/packager.io/functions +++ b/contrib/packager.io/functions @@ -155,7 +155,7 @@ function create_mysql_db () { MYSQL_CREDENTIALS="--defaults-file=${MY_CNF}" else echo -n "Please enter your MySQL root password:" - read -s MYSQL_ROOT_PASS + read -p 'Password: ' MYSQL_ROOT_PASS MYSQL_CREDENTIALS="-u root -p${MYSQL_ROOT_PASS}" fi