-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·36 lines (28 loc) · 887 Bytes
/
install
File metadata and controls
executable file
·36 lines (28 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
source ./bits/bootstrap/logging
set -euo pipefail ; IFS=$'\n\t'
#-----------
# Configurations
#-----------
ERLANG_VERSION=${ERLANG_VERSION-17.5-1}
ERLANG_DISPLAY=${ERLANG_DISPLAY-standalone} # or internal
LOG_DIR=${LOG_DIR-/var/log}
export SRC_DIR=${SRC_DIR-/var/src}
export ERLANG_LOG_DIR=${ERLANG_LOG_DIR-$LOG_DIR/elixir}
LAUNCHER_OWNER=${LAUNCHER_OWNER-$USER}
export LAUNCHER_DIR=${LAUNCHER_DIR-/var/local}
export ERLANG_LAUNCHER_DIR=${ERLANG_LAUNCHER_DIR-$LAUNCHER_DIR/elixir/$ERLANG_VERSION}
#-----------
# Install Script
#-----------
if [[ "$ERLANG_DISPLAY" == "standalone" ]]; then
notify "Install Erlang ($ERLANG_VERSION)..."
else
notify " -- install Erlang ($ERLANG_VERSION)..."
fi
DIR=./bits/erlang ./bits/bootstrap/cleanup
if [[ "$ERLANG_DISPLAY" == "standalone" ]]; then
notify "DONE, Install Erlang."
else
notify " -- DONE, Install Erlang."
fi