ext_373430 ([identity profile] alexkuklin.livejournal.com) wrote in [personal profile] alexkuklin 2008-03-24 06:07 pm (UTC)

# Check for sufficient diskspace
if [ -d /usr/lib/oracle ]
then
# diskspace=`df -k /usr/lib/oracle | grep '^/dev*' | awk '{print $4}'`
diskspace=`df -k /usr/lib/oracle | grep -v Filesystem | grep % | tr -s " " | cut -d" " -f4`
diskspace=`expr $diskspace / 1024`
if [ $diskspace -lt 100 ]
then
echo "You have insufficient diskspace in the destination directory (/usr/lib/oracle)
to install Oracle Client 10g Express Edition. The installation requires at
least 100 MB free on this disk."
exit 1
fi
else
# diskspace=`df -k /usr/lib | grep '^/dev*' | awk '{print $4}'`
diskspace=`df -k /usr/lib | grep -v Filesystem | grep % | tr -s " " | cut -d" " -f4`
diskspace=`expr $diskspace / 1024`
if [ $diskspace -lt 100 ]
then
echo "You have insufficient diskspace in the destination directory (/usr/lib) to
install Oracle Client 10g Express Edition. The installation requires at
least 100 MB free on this disk."
exit 1
fi
fi

гм. как бы вокруг df не пришлось враппера городить.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org