From 76ae6cc5014f651b1cb6e6e5bf62e21c3ee7e6cb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 23 Jun 2018 18:35:33 -0600 Subject: [PATCH] mktemp -d first --- .gitignore | 6 +++--- usr/share/install_helper.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index bb76721..ea7292b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,9 +6,9 @@ bin/npx bin/telebit bin/telebitd bin/telebit_uninstall -etc/ -include/ -share/ +./etc/ +./include/ +./share/ # Logs logs diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 4110c64..681fea8 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -77,7 +77,6 @@ fi echo "" -my_tmp="$(mktemp -d)" #TELEBIT_TMP="$my_tmp/telebit" TELEBIT_REAL_PATH=${TELEBIT_PATH:-} TELEBIT_TMP=${TELEBIT_PATH:-} @@ -103,6 +102,7 @@ real_sudo_cmd=$soft_sudo_cmd real_sudo_cmde=$soft_sudo_cmde set +e +my_tmp="$(mktemp -d)" mkdir -p $my_tmp "$TELEBIT_REAL_PATH" "$TELEBIT_REAL_PATH/etc" "$TELEBIT_REAL_PATH/var/log" 2>/dev/null chown -R $(id -u -n):$(id -g -n) "$TELEBIT_REAL_PATH" 2>/dev/null if [ $? -eq 0 ]; then