Skip to content

Commit

Permalink
create new tmp dir for downloading files then delete
Browse files Browse the repository at this point in the history
  • Loading branch information
upendra-sahu-ML committed Jun 19, 2020
1 parent cdf766f commit f4e7222
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ install_apm_agent
}

oldpath=`pwd`
cd /tmp
#cd /tmp
tmp_dir=$(mktemp -d -t installsfagent-XXXXXXXXXX)
cd $tmp_dir

if [ "$1" = "upgrade" ];
then
Expand All @@ -191,4 +193,5 @@ else
install_services
fi
cd $oldpath
rm -rf $tmp_dir

0 comments on commit f4e7222

Please sign in to comment.