Newer, combined version of script for both AWS and Azure

This commit is contained in:
root
2018-07-09 08:56:02 -04:00
parent 542a5c4ae9
commit a7364dd1ed
5 changed files with 399 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/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