Skip to content

Instantly share code, notes, and snippets.

View jeansymolanza's full-sized avatar

Jeansy Molanza jeansymolanza

View GitHub Profile
#!/bin/sh
set -e
echo "Starting Unidata 8.1.2 uninstall"
# Rolling back previous Unidata if it exists
if [[ -d /var/tmp/812_UPGR/pre/bin/ ]]; then
rsync -Kavr --delete /var/tmp/812_UPGR/pre/bin/* /usr/ud/bin/
fi
if [[ -d /var/tmp/812_UPGR/pre/lib/ ]]; then
#!/bin/sh
set -e
rpmbuild -ba ~/rpmbuild/SPECS/rocket-unidata-8.1.2.spec
if [ $(rpm -qa | grep -i rocket-unidata-8.1.2-1.x86_64) ]; then
sudo rpm -e rocket-unidata-8.1.2-1.x86_64
fi
sudo rpm -ivh --nodeps ~/rpmbuild/RPMS/x86_64/rocket-unidata-8.1.2-1.x86_64.rpm