Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Ensure boot script doesn't require conform
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Jul 20, 2014
1 parent aebd233 commit f84ac4d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions priv/rel/files/boot
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ generate_config() {
local conf_file="$REL_DIR/$REL_NAME.conf"
local schema_file="$REL_DIR/$REL_NAME.schema.exs"
local sys_config="$REL_DIR/sys.config"
result="$("erts-$ERTS_VSN/bin/escript" "$ROOTDIR"/bin/conform --conf "$conf_file" --schema "$schema_file" --config "$sys_config" --output-dir "$REL_DIR")"
exit_status="$?"
if [ "$exit_status" -ne 0 ]; then
exit "$exit_status"
if [ -f "$schema_file" ]; then
result="$("erts-$ERTS_VSN/bin/escript" "$ROOTDIR"/bin/conform --conf "$conf_file" --schema "$schema_file" --config "$sys_config" --output-dir "$REL_DIR")"
exit_status="$?"
if [ "$exit_status" -ne 0 ]; then
exit "$exit_status"
fi
fi
}

Expand Down

0 comments on commit f84ac4d

Please sign in to comment.