Skip to content

Commit

Permalink
#99 Extra dirs cleanup (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: djklim87 <[email protected]>
  • Loading branch information
djklim87 and djklim87 authored Dec 9, 2024
1 parent 4be7b8f commit cbd1775
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,14 @@ docker_setup_env() {
fi

MCL_URL=$(cat /mcl_galera.url)
wget --show-progress -q -P /tmp $MCL_URL
mkdir /tmp/mcl
wget --show-progress -q -P /tmp/mcl $MCL_URL

LAST_PATH=$(pwd)


for package in columnar galera; do
cd /tmp
cd /tmp/mcl

PACKAGE_NAME=$(ls | grep "manticore-${package}" | head -n 1)

Expand All @@ -135,7 +137,7 @@ docker_setup_env() {
fi
find . -name '*.so' -exec cp {} ${MCL_DIR} \;
done;

rm -rf /tmp/mcl
cd $LAST_PATH

fi
Expand Down Expand Up @@ -194,7 +196,7 @@ install_extra() {
# $FORCE $5

# In case force update
if [ $5=1 ]; then
if [ ! -z "$5" ]; then
rm -rf "${4}"
fi

Expand All @@ -217,8 +219,8 @@ install_extra() {

cd $LAST_PATH

rm -rf "${4}*"
cp /usr/bin/manticore-executor ${4}
rm -rf ${4}*
cp /usr/bin/manticore-executor "${4}"
}

_main() {
Expand Down

0 comments on commit cbd1775

Please sign in to comment.