From e72cd4816e0aa99ebce9b1a9c5de99476347e986 Mon Sep 17 00:00:00 2001 From: EkkoG Date: Sat, 23 Sep 2023 23:02:46 +0800 Subject: [PATCH] Revert --- run.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/run.sh b/run.sh index ce041a4..c659630 100755 --- a/run.sh +++ b/run.sh @@ -80,18 +80,11 @@ services: env_file: - ./.env volumes: - - bin:$BUILD_DIR/bin + - ./bin:$BUILD_DIR/bin - ./build.sh:$BUILD_DIR/build.sh - ./files:$BUILD_DIR/custom_files - ./.env:$BUILD_DIR/.env command: "./build.sh" - -volumes: - bin: - driver_opts: - type: none - device: $PWD/bin - o: bind END ) @@ -114,11 +107,11 @@ if [ ! -z $RM_FIRST ]; then fi mkdir -p bin -# # macOS no need to change the owner -# # change the owner of bin to 1000:1000 when running on linux -# if [[ $(uname) =~ "Linux" ]]; then -# sudo chown -R 1000:1000 bin -# fi +# macOS no need to change the owner +# change the owner of bin to 1000:1000 when running on linux +if [[ $(uname) =~ "Linux" ]]; then + sudo chown -R 1000:1000 bin +fi compose up --remove-orphans build_status=$?