Skip to content

Commit

Permalink
fix: Duplicate operations
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Nov 10, 2023
1 parent 64355d8 commit 018b87c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/ai/backend/install/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ async def install(self, dist_info: DistInfo) -> None:
# prerequisites
await ctx.check_prerequisites()
# install
await ctx.install_halfstack()
await ctx.install()
# configure
await ctx.configure()
await ctx.load_fixtures()
# post-setup
await ctx.dump_etcd_config()
except asyncio.CancelledError:
Expand Down Expand Up @@ -114,11 +112,9 @@ async def install(self, dist_info: DistInfo) -> None:
dist_info.target_path = Path(value)
await ctx.check_prerequisites()
# install
await ctx.install_halfstack()
await ctx.install()
# configure
await ctx.configure()
await ctx.load_fixtures()
# post-setup
await ctx.dump_etcd_config()
except asyncio.CancelledError:
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/install/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ async def _verify_package(self, name: str, *, fat: bool) -> None:
csum_path = dst_path.with_name(pkg_name + ".sha256")
await self._validate_checksum(dst_path, csum_path)
csum_path.unlink()
dst_path.chmod(0o755)
dst_path.rename(dst_path.with_name(f"backendai-{name}"))

async def _install_package(self, name: str, vpane: Vertical, *, fat: bool) -> None:
Expand Down

0 comments on commit 018b87c

Please sign in to comment.