Skip to content
Snippets Groups Projects
Commit 1152bee1 authored by Robert Lange's avatar Robert Lange
Browse files

Merge branch 'master-v5' into instance/fid

parents 1b8c4d3c 4b9c2346
Branches
Tags
No related merge requests found
......@@ -17,16 +17,16 @@
# @author Sebastian Kehr <kehr@ub.uni-leipzig.de>
# @license https://opensource.org/licenses/GPL-3.0 GNU GPLv3
until ! (ping -c1 env >/dev/null 2>&1) && [ -f ./data/docker/env/autoconfig ]; do :; done
set -a; . ./data/docker/env/autoconfig; set +a
if [ "$(whoami)" = "node" ]; then
echo "$VUFIND_DEFAULTS" > "./data/docker/autoconfig/$VUFIND_SITE.json"
[ -d "$HOME" ] || PREFIX=$HOME npm install -g @ubleipzig/autoconfig@2.3.2
echo "$VUFIND_DEFAULTS" > "./data/docker/autoconfig/$VUFIND_SITE.json"
exec "$HOME/bin/autoconfig" -c ./data/docker/autoconfig "$@"
exit
fi
until ! (ping -c1 env >/dev/null 2>&1) && [ -f ./data/docker/env/autoconfig ]; do :; done
set -a; . ./data/docker/env/autoconfig; set +a
: "${UIDGID:=$(stat -c '%u' .):$(stat -c '%g' .)}"
sed -i "s/$(id -u node):$(id -g node)/$UIDGID/" /etc/passwd
sh -c "exit 1"; while [ $? -eq 1 ]; do sleep 1; nc -zv "db:3306" >/dev/null 2>&1; done;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment