Skip to content

Commit

Permalink
fix: update script/docker_compose.sh script/docker_replace.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Jan 26, 2025
1 parent 70ebb7c commit bb5e1fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions script/docker_compose.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash

# get current directory
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
echo "CURRENT_DIR=$CURRENT_DIR"
TOOL_TOP_DIR=$(cd ${CURRENT_DIR}/../.. && pwd)
echo "TOOL_TOP_DIR=$TOOL_TOP_DIR"


# UID, GID
export MY_UID=$(id -u)
export MY_GID=$(id -g)
Expand All @@ -17,8 +16,7 @@ cd $TOOL_TOP_DIR
scripts=()

# Add install scripts
for i in {0..14}
do
for i in {0..14}; do
scripts+=("install_${i}.sh")
done

Expand All @@ -29,11 +27,12 @@ scripts+=("install.sh")

# Touch each script
for script in "${scripts[@]}"; do
echo "touch $script"
touch "$script"
chmod +x "$script"
if [ ! -f "$script" ]; then
echo "touch $script"
touch "$script"
chmod +x "$script"
fi
done


cd $CURRENT_DIR/../docker
docker-compose down && docker-compose up --build
2 changes: 1 addition & 1 deletion script/docker_replace.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# get current directory
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
echo "CURRENT_DIR=$CURRENT_DIR"
TOOL_TOP_DIR=$(cd ${CURRENT_DIR}/../.. && pwd)
echo "TOOL_TOP_DIR=$TOOL_TOP_DIR"
Expand Down

0 comments on commit bb5e1fd

Please sign in to comment.