Explorar el Código

delete tmpdir when database migration is completed

Serghey Rodin hace 12 años
padre
commit
be2d89fcb2
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      bin/v-change-database-owner

+ 3 - 0
bin/v-change-database-owner

@@ -103,6 +103,9 @@ case $TYPE in
     pgsql) import_pgsql_database $dump ;;
 esac
 
+# Deleting tmpdir
+rm -rf $tmpdir
+
 # Remove old database
 $BIN/v-unsuspend-database $owner $database > /dev/null 2>&1
 $BIN/v-delete-database $owner $database > /dev/null 2>&1