diff --git a/mobile/ios/ci_scripts/ci_post_clone.sh b/mobile/ios/ci_scripts/ci_post_clone.sh index 1a4f0cd1..ea244484 100755 --- a/mobile/ios/ci_scripts/ci_post_clone.sh +++ b/mobile/ios/ci_scripts/ci_post_clone.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # The default execution directory of this script is the ci_scripts directory. cd $CI_WORKSPACE/mobile diff --git a/nginx/10-listen-on-ipv6-by-default.sh b/nginx/10-listen-on-ipv6-by-default.sh index f836aadd..e4d85c7c 100755 --- a/nginx/10-listen-on-ipv6-by-default.sh +++ b/nginx/10-listen-on-ipv6-by-default.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # vim:sw=4:ts=4:et set -e diff --git a/nginx/15-set-env-variables.envsh b/nginx/15-set-env-variables.envsh index 664de1a2..5d4acb1b 100755 --- a/nginx/15-set-env-variables.envsh +++ b/nginx/15-set-env-variables.envsh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh set -e export IMMICH_WEB_URL="${IMMICH_WEB_URL:-http://immich-web:3000}" diff --git a/server/bin/build-imagemagick.sh b/server/bin/build-imagemagick.sh index 01225eb4..fea655ac 100755 --- a/server/bin/build-imagemagick.sh +++ b/server/bin/build-imagemagick.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/build-libraw.sh b/server/bin/build-libraw.sh index 510753fa..50bc049e 100755 --- a/server/bin/build-libraw.sh +++ b/server/bin/build-libraw.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/build-libvips.sh b/server/bin/build-libvips.sh index bed60e41..2c5bc55b 100755 --- a/server/bin/build-libvips.sh +++ b/server/bin/build-libvips.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/bin/cli.sh b/server/bin/cli.sh index 9f378380..148954d9 100755 --- a/server/bin/cli.sh +++ b/server/bin/cli.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash node ./node_modules/immich/bin/index "$@" diff --git a/server/bin/install-ffmpeg.sh b/server/bin/install-ffmpeg.sh index 8e60b3b7..46b9e51e 100755 --- a/server/bin/install-ffmpeg.sh +++ b/server/bin/install-ffmpeg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/server/start-microservices.sh b/server/start-microservices.sh index f81e6381..efdafaac 100755 --- a/server/start-microservices.sh +++ b/server/start-microservices.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh ./start.sh microservices diff --git a/server/start-server.sh b/server/start-server.sh index c3262af8..acbbb82b 100755 --- a/server/start-server.sh +++ b/server/start-server.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh ./start.sh immich diff --git a/server/start.sh b/server/start.sh index 253dfc56..10b473d9 100755 --- a/server/start.sh +++ b/server/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh export LD_PRELOAD=/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2