formations/modules_EOLE_envole/documents/tronc-commun-2-avancee/posttemplate/00-creation

15 lines
298 B
Plaintext
Raw Normal View History

2013-03-10 22:05:59 +01:00
#!/bin/bash
. /usr/share/eole/FonctionsEoleNg
option=$1
if [ "$option" = "instance" ] && [ -d $container_path_web/tmp/toto ] ; then
Question_ouinon "Voulez-vous supprimer le répertoire ?" "oui"
[ "$?" = "0" ] && RunCmd "rm -rf /tmp/toto" web
fi
RunCmd "mkdir -p /tmp/toto" web
exit 0