Skip to content

Commit

Permalink
Remove bad code in restore class
Browse files Browse the repository at this point in the history
  • Loading branch information
bautisflow committed Oct 24, 2023
1 parent 1ce0b32 commit aa47c23
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/thinger/system/platform/restore.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,7 @@ class PlatformRestore : public ThingerMonitorRestore {
}
}

Docker::Container::exec("mongodb", "chown 999:999 /data/db/", true);

utils::docker::Client cli;

cli.
Docker::Container::exec("mongodb", "chown 999:999 /data/db/");

if ( !Docker::Container::exec("mongodb", "mongorestore --gzip --archive=/data/db/" + std::string(file.data()) + " -u thinger -p " + mongo_password) ) {
data["status"] = false;
Expand Down

0 comments on commit aa47c23

Please sign in to comment.