From 0afdb1526d495f8556643bbc7dcf6ba6ec0a8b72 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 9 Jun 2018 08:05:45 -0600 Subject: [PATCH] macOS doesn't have /opt --- usr/share/install_helper.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index ba814dd..8712987 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -138,6 +138,9 @@ export PATH="$TELEBIT_PATH/bin:$PATH" sleep 0.25 echo "(your password may be required to complete installation)" +#echo "${sudo_cmde}mkdir -p '$TELEBIT_PATH'{etc,var/log}" +$sudo_cmd mkdir -p "$TELEBIT_PATH" + echo " - installing node.js runtime to '$TELEBIT_PATH'..." http_bash https://git.coolaj86.com/coolaj86/node-installer.sh/raw/branch/master/install.sh --no-dev-deps >/dev/null 2>/dev/null @@ -147,8 +150,6 @@ my_npm="$my_node $TELEBIT_PATH/bin/npm" my_tmp="$(mktemp -d)" mkdir -p $my_tmp -#echo "${sudo_cmde}mkdir -p '$TELEBIT_PATH'{etc,var/log}" -$sudo_cmd mkdir -p "$TELEBIT_PATH" $sudo_cmd mkdir -p "$TELEBIT_PATH/etc" $sudo_cmd mkdir -p "$TELEBIT_PATH/var/log" $sudo_cmd chown -R $(id -u -n):$(id -g -n) "$TELEBIT_PATH"