docker-entrypoint.sh in metaractor-3.1.1 vs docker-entrypoint.sh in metaractor-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash -set -e +set -euo pipefail su-exec ${FIXUID:?Missing FIXUID var}:${FIXGID:?Missing FIXGID var} fixuid chown_dir() { dir=$1 @@ -11,10 +11,12 @@ chown metaractor:metaractor $dir fi } chown_dir /usr/local/bundle +chown_dir /home/metaractor/.local/share/gem +chown_dir /home/metaractor/.gem if [ "$(which "$1")" = '' ]; then if [ "$(ls -A /usr/local/bundle/bin)" = '' ]; then echo 'command not in path and bundler not initialized' echo 'running bundle install' @@ -25,9 +27,9 @@ if [ "$1" = 'bundle' ]; then set -- su-exec metaractor "$@" elif ls /usr/local/bundle/bin | grep -q "\b$1\b"; then set -- su-exec metaractor bundle exec "$@" - su-exec metaractor ash -c 'bundle check || bundle install' + su-exec metaractor bash -c 'bundle check || bundle install' fi exec "$@"