Files
rhel-cloud-reip/aws/reipuninstaller.sh
T
justin 542a5c4ae9 Initial Commit
Initial Commit of scripts for Azure and AWS
2018-07-05 15:06:57 -04:00

18 lines
532 B
Bash

#!/usr/bin/env bash
INSTALLATION_LOG=$1
echo 'Stopping service'>>$INSTALLATION_LOG
service reiphandler stop
echo 'Removing service source'>>$INSTALLATION_LOG
rm -rf /etc/reip/
echo 'Removing unit file'>>$INSTALLATION_LOG
rm -rf /etc/systemd/system/reiphandler.service
echo 'Removing service backup'>>$INSTALLATION_LOG
rm -rf reip_handler.sh
echo 'Removing service installer'>>$INSTALLATION_LOG
rm -rf installer.sh
echo 'Removing service service'>>$INSTALLATION_LOG
rm -rf /etc/init.d/reiphandler
echo 'Success'>>$INSTALLATION_LOG