Skip to content

Commit

Permalink
omnibus: remove pythons download data at the right moment only.
Browse files Browse the repository at this point in the history
  • Loading branch information
remeh committed Jan 29, 2020
1 parent b139ce4 commit 3a7f9bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions omnibus/package-scripts/agent/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ if [ "$DISTRIBUTION" != "Darwin" ]; then
if [ -d $DOWNLOADER_DATA37 ]; then
rm -rf $DOWNLOADER_DATA37
fi

DOWNLOADER_DATA38="$INSTALL_DIR/embedded/lib/python3.8/site-packages/datadog_checks/downloader/data"
if [ -d $DOWNLOADER_DATA38 ]; then
rm -rf $DOWNLOADER_DATA38
fi
else
echo "[ FAILED ]\tYour system is currently not supported by this script.";
exit 1;
Expand Down
5 changes: 0 additions & 5 deletions omnibus/package-scripts/agent/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ remove_downloader_data()
rm -rf $DOWNLOADER_DATA
fi

DOWNLOADER_DATA37="$INSTALL_DIR/embedded/lib/python3.7/site-packages/datadog_checks/downloader/data"
if [ -d $DOWNLOADER_DATA37 ]; then
rm -rf $DOWNLOADER_DATA37
fi

DOWNLOADER_DATA38="$INSTALL_DIR/embedded/lib/python3.8/site-packages/datadog_checks/downloader/data"
if [ -d $DOWNLOADER_DATA38 ]; then
rm -rf $DOWNLOADER_DATA38
Expand Down

0 comments on commit 3a7f9bb

Please sign in to comment.