From b244cdd5924fe291e34d04cd75c0464bd36a2b4c Mon Sep 17 00:00:00 2001 From: GARDAIS Jeremy Date: Thu, 19 May 2016 11:14:32 +0200 Subject: [PATCH] Add some read and some messages before exit the script --- install_windows/01_install_backuppc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install_windows/01_install_backuppc.sh b/install_windows/01_install_backuppc.sh index 77326ee..1ae2c58 100755 --- a/install_windows/01_install_backuppc.sh +++ b/install_windows/01_install_backuppc.sh @@ -14,6 +14,7 @@ ip_ur1=$(wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d" " -f 6 | cu if [[ ${ip_ur1} != "129.20" ]]; then printf "Merci de vous connecter au réseau 'univ-rennes1' et relancer le 01_install_backuppc.exe\n" + read enderror exit 1 fi @@ -34,4 +35,10 @@ net start sshd # ssh au demarrage if [[ ! -f /cygdrive/c/backuppc_ipr/etc/ssh_host_ecdsa_key.pub ]]; then printf "Erreur lors de l'installation, merci de relancer avec les droits Administrateur\n" + read enderror fi + +printf "01_script_install_backuppc terminé avec succès, appuyez sur 'Entrée'\n" +read endpoint +exit 0 +