puppet-standalone-mashup/shared/modules/flush_software/templates/flush-software

18 lines
309 B
Plaintext
Raw Normal View History

2012-02-28 20:07:55 +00:00
#!/bin/bash
if [ -z $1 ]; then
echo "$0 <name of software>"
exit 1
fi
echo "Are you sure you want to remove '$1'? [yes/no]"
read answer
if [ $answer == 'yes' ]; then
rm -Rf <%= scope.lookupvar('base::install_path') %>/$1*
rm -Rf <%= scope.lookupvar('base::src_path') %>/$1*
echo "$1 purged"
fi