Skip to content

Commit aea5a1a

Browse files
committed
[fix][install] use root remove /tmp/dingoadm
1 parent 010ee6f commit aea5a1a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/install_dingoadm.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ __EOF__
8383
install_binary() {
8484
local ret=1
8585

86-
# curl "${g_download_url}" -skLo "${tempfile}" # internal
87-
# wget $g_github_url -O "${tempfile}" # github
88-
# if [ $? -eq 0 ]; then
89-
# tar -zxvf "${tempfile}" -C "${g_bin_dir}" 1>/dev/null
90-
# ret=$?
91-
# fi
92-
9386
local source=$1
9487
if [ "$source" == "internal" ]; then
9588
echo "Downloading from internal source..."
@@ -105,7 +98,8 @@ install_binary() {
10598
local tempfile="/tmp/dingoadm"
10699
# check /tmp/dingoadm exists, if exists, remove it
107100
if [ -f "${tempfile}" ]; then
108-
rm -f "${tempfile}"
101+
echo "remove existing tempfile ${tempfile}"
102+
sudo rm -f "${tempfile}"
109103
fi
110104
# Add your GitHub download logic here
111105
wget $g_github_url -O "${tempfile}" # github

0 commit comments

Comments
 (0)