mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
delete tmpdir when database migration is completed
This commit is contained in:
parent
263df1cc0e
commit
be2d89fcb2
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ case $TYPE in
|
||||||
pgsql) import_pgsql_database $dump ;;
|
pgsql) import_pgsql_database $dump ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Deleting tmpdir
|
||||||
|
rm -rf $tmpdir
|
||||||
|
|
||||||
# Remove old database
|
# Remove old database
|
||||||
$BIN/v-unsuspend-database $owner $database > /dev/null 2>&1
|
$BIN/v-unsuspend-database $owner $database > /dev/null 2>&1
|
||||||
$BIN/v-delete-database $owner $database > /dev/null 2>&1
|
$BIN/v-delete-database $owner $database > /dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue