aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorsoranoba <[email protected]>2016-06-17 01:06:30 +0900
committersoranoba <[email protected]>2016-06-17 01:06:30 +0900
commit7de3ed18361decc9ca3c1c0fe95b4f40a149154c (patch)
treebba6f246581bf3952fce4f07261a026135be276a /priv/templates
parent12e030ac8a2f30fc8dc1a1c04f90568778edd914 (diff)
downloadrelx-7de3ed18361decc9ca3c1c0fe95b4f40a149154c.tar.gz
relx-7de3ed18361decc9ca3c1c0fe95b4f40a149154c.tar.bz2
relx-7de3ed18361decc9ca3c1c0fe95b4f40a149154c.zip
Remove a non-POSIX command.
Diffstat (limited to 'priv/templates')
-rwxr-xr-xpriv/templates/extended_bin7
1 files changed, 2 insertions, 5 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index 811a8bb..7a9f0c7 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -165,13 +165,10 @@ PIPE_DIR="${PIPE_DIR:-/tmp/erl_pipes/$NAME/}"
COOKIE_ARG="$(grep '^-setcookie' "$VMARGS_PATH" || true)"
DEFAULT_COOKIE_FILE="$HOME/.erlang.cookie"
if [ -z "$COOKIE_ARG" ]; then
- if [ ! -f "$DEFAULT_COOKIE_FILE" ]; then
- echo "vm.args needs to have a -setcookie, or $DEFAULT_COOKIE_FILE is required."
- exit 1
- elif [ -O "$DEFAULT_COOKIE_FILE" ] && [ $(stat --format=%a $DEFAULT_COOKIE_FILE) -eq 400 ]; then
+ if [ -f "$DEFAULT_COOKIE_FILE" ]; then
COOKIE="$(cat $DEFAULT_COOKIE_FILE)"
else
- echo "$DEFAULT_COOKIE_FILE must be set to octal 400. (read-only by user)"
+ echo "vm.args needs to have a -setcookie, or $DEFAULT_COOKIE_FILE (its permission must be 400) is required."
exit 1
fi
else