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=$?