mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-03 01:01:42 +00:00
3170a27fb5
* [init] bail out in case the db access fails Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [misc] bail out in case any command in an init_script failed NOTE: sh does not support `-o pipefail`. Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
5 lines
247 B
Bash
Executable file
5 lines
247 B
Bash
Executable file
#!/bin/bash
|
|
set -e -o pipefail
|
|
|
|
# See the bottom of http://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
|
|
echo "`route -n | awk '/UG[ \t]/{print $2}'` dockerhost" >> /etc/hosts
|