Bachir Soussi Chiadmi hace 9 años
padre
commit
35ae231c85
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      install-debian-server.sh

+ 7 - 3
install-debian-server.sh

@@ -7,16 +7,20 @@
 # http://web-74.com/blog/reseaux/gerer-le-deploiement-facilement-avec-git/
 #
 
-echo "This script has been tested only on Linux Debian 7"
+echo -e "\033[35;1mThis script has been tested only on Linux Debian 7  \033[0m"
 echo "Please run this script as root"
 
-read -e -p "Should we start ? [Y:n]" i "y" start
+read -e -p "Should we start ? [Y:n]" start
+name=${name:-y}
 if [start != 'y']; then
-  exit
+  break;
 fi
 
 echo "* * *"
 
+apt-get update
+apt-get upgrade
+
 # get the current position
 _cwd="$(pwd)"