#! /bin/csh -f if (`id -nu` == "root") then echo "MENU (1, 2, 3, A)" set choix = $< switch ($choix) case [1] : #echo "INSTALLATION DE APACHE2, MySQL et PHP5" goto installapache2 goto installmysql goto installphp5 breaksw case [2] : #echo "INSTALLATION DE APACHE2, PostGreSQL et PHP5" goto installapache2 goto installpgsql goto installphp5 breaksw case [3] : #echo "INSTALLATION DE APACHE2, MySQL, PostGreSQL et PHP5" goto installapache2 goto installmysql goto installpgsql goto installphp5 breaksw case [Aa] : #echo "ABOUT" goto about breaksw default : echo "Met tes lunettes" breaksw endsw else echo "Vous n'ĂȘtes pas loguĂ© en tant qu'utilisateur root, veuillez le faire, par la commande 'sudo -s'" endif exit installapache2: echo "INSTALLATION DE APACHE2" installmysql: echo "INSTALLATION DE MySQL" installphp5: echo "INSTALLATION DE PHP5" installpgsql: echo "INSTALLATION DE PostGreSQL" about: echo "ABOUT"