update aurora, add disk cleanup
This commit is contained in:
@@ -83,6 +83,12 @@ run_post_scripts() {
|
|||||||
echo "All post-import scripts completed."
|
echo "All post-import scripts completed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cleanup_exported_files() {
|
||||||
|
echo "Cleaning up exported files from '${AURORA_TEMP_DIR}'."
|
||||||
|
rm -rf "$AURORA_TEMP_DIR"
|
||||||
|
echo "Exported files cleaned up."
|
||||||
|
}
|
||||||
|
|
||||||
# === SCRIPT EXECUTION ===
|
# === SCRIPT EXECUTION ===
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
@@ -92,6 +98,7 @@ if [ $# -eq 0 ]; then
|
|||||||
import_and_rename
|
import_and_rename
|
||||||
grant_privileges
|
grant_privileges
|
||||||
run_post_scripts
|
run_post_scripts
|
||||||
|
cleanup_exported_files
|
||||||
echo "=== 'Complete' operation finished successfully ==="
|
echo "=== 'Complete' operation finished successfully ==="
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user