improve docker file
[discourse_docker.git] / launcher
index 3fc56ef9ddea6b9dc112304dd73dc7297f22d3b8..5f9e37f20e8c487e1675240a6a7ccb9b39d2e973 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -35,8 +35,8 @@ case "$command" in
   bootstrap)
       docker run -cidfile $cidbootstrap -i -t -v `pwd`/shared:/shared samsaffron/discourse /shared/pups/bin/pups /$config_file
       docker commit `cat $cidbootstrap` samsaffron/discourse $config
-      docker rm `cat $cidbootstrap`
-      rm $cidbootstrap
+      docker rm `cat $cidbootstrap` && rm $cidbootstrap
+      exit 0
       ;;
 
   ssh)