Skip to content

Commit

Permalink
Improve install-master.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Mar 28, 2024
1 parent 36fd5be commit 5c76d34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ bitcart_stop() {
docker compose -p "$NAME" -f compose/generated.yml down
}

bitcart_reset_plugins() {
export ADMIN_PLUGINS_HASH=
export STORE_PLUGINS_HASH=
export BACKEND_PLUGINS_HASH=
export DOCKER_PLUGINS_HASH=
}

bitcart_pull() {
docker compose -f compose/generated.yml pull
export ADMIN_PLUGINS_HASH=5cd337198ead0768975610a135e26257153198c7
export STORE_PLUGINS_HASH=5cd337198ead0768975610a135e26257153198c7
export BACKEND_PLUGINS_HASH=5cd337198ead0768975610a135e26257153198c7
export DOCKER_PLUGINS_HASH=5cd337198ead0768975610a135e26257153198c7
bitcart_reset_plugins
}

bitcart_restart() {
Expand Down
3 changes: 3 additions & 0 deletions install-master.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

. helpers.sh
load_env

Expand Down Expand Up @@ -43,4 +45,5 @@ build_additional_image() {

build_additional_image admin
build_additional_image store
bitcart_reset_plugins
bitcart_start

0 comments on commit 5c76d34

Please sign in to comment.