Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit d0d4786

Browse files
authored
In case of redhat8 we have seen bin folder is cleaning during Preuninstall , this is to avoid the issue. (#829)
In case of redhat8 we have seen bin folder is cleaning during Preuninstall , this is to avoid the issue.
1 parent 7bafd75 commit d0d4786

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

installbuilder/datafiles/Base_DSC.data

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,6 @@ echo "Deployment operation type :" $1
246246
if [ "$1" = "1" -o "$1" = 1 -o "$1" = "install" -o "$1" = "clean" ]; then
247247
echo "Cleanning directory /opt/dsc..."
248248
rm -rfv /opt/dsc
249-
else
250-
for file in `ls /opt/dsc`; do
251-
if [ $file != "lib" ]; then
252-
rm -rfv /opt/dsc/"$file"
253-
fi
254-
done
255249
fi
256250
rm -f /etc/opt/omi/conf/omsconfig/inventory_lock
257251
echo "Cleaned up existing dsc_hosts..."
@@ -619,12 +613,6 @@ echo "Deployment operation type :" $1
619613
if [ "$1" = "0" -o "$1" = 0 -o "$1" = "remove" -o "$1" = "purge" ]; then
620614
echo "Cleanning directory /opt/dsc..."
621615
rm -rfv /opt/dsc
622-
else
623-
for file in `ls /opt/dsc`; do
624-
if [ $file != "lib" ]; then
625-
rm -rfv /opt/dsc/"$file"
626-
fi
627-
done
628616
fi
629617
rm -f /etc/opt/omi/conf/omsconfig/inventory_lock
630618
echo "Cleaned up existing dsc_hosts before uninstall..."

0 commit comments

Comments
 (0)