From 4f696dc233c1c4725d8c926757aec3ea0063c721 Mon Sep 17 00:00:00 2001 From: Aidan Kahrs Date: Sun, 9 Apr 2017 20:14:48 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 39555d8..68e54e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ TigerOS ==================== +[![Build Status](http://tigeros.ritlug.com:8080/job/TigerOS/badge/icon)](http://tigeros.ritlug.com:8080/job/TigerOS/) + ## Instructions ### Setup * Clone this repo From 953422f94615ca6d490ffb58d34163e831459609 Mon Sep 17 00:00:00 2001 From: Aidan Kahrs Date: Sun, 9 Apr 2017 20:22:07 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 68e54e2..39555d8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ TigerOS ==================== -[![Build Status](http://tigeros.ritlug.com:8080/job/TigerOS/badge/icon)](http://tigeros.ritlug.com:8080/job/TigerOS/) - ## Instructions ### Setup * Clone this repo From 30983a0f3857d592efb9f16959a6b63809285d1f Mon Sep 17 00:00:00 2001 From: Tim Zabel Date: Thu, 13 Apr 2017 23:27:03 -0400 Subject: [PATCH 3/3] Created basic major-specific removal script. --- scripts/removal | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100755 scripts/removal diff --git a/scripts/removal b/scripts/removal new file mode 100755 index 0000000..254075d --- /dev/null +++ b/scripts/removal @@ -0,0 +1,82 @@ +#!/bin/bash + +# TigerOS script for the removal of unwanted major-specific packages + +# Check to see if the current user is root +if [ $EUID != 0 ] +then + echo "Please run this script as root (sudo $@$0)." + exit +fi + +echo -e "Welcome to the TigerOS package removal script.\n +This script will remove all files and packages installed from a specific major." +echo -e "\n" +sleep 5; + +PS3='Please enter the major for the courses you wish to remove: ' +options=("CS" "IT/WMC" "NSSA/CIT" "SE" "Quit") +select opt in "${options[@]}" +do + case $opt in + "CS") + echo -e "Welcome to the TigerOS CS package removal script.\n + This script will remove Intellij idea, PyCharm, prolog, racket, and JFLAP from your machine." + while true; do + read -p "Do you wish to continue? [y/n] " yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + esac + done + # removal script cannot be done without the installer script implementing this section. + ;; + "IT/WMC") + echo -e "Welcome to the TigerOS IT/WMC package removal script.\n + This script will remove mysql, mongodb, subversion, filezilla, and nodejs from your machine." + while true; do + read -p "Do you wish to continue? [y/n] " yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + esac + done + # removal script here. + ;; + "NSSA/CIT") + echo -e "Welcome to the TigerOS NSSA/CIT package removal script.\n + This script will remove wireshark, python 2.7, python 3, and jGrasp from your machine." + while true; do + read -p "Do you wish to continue [y/n] " yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + esac + done + sudo dnf remove wireshark python python3 + # WARNING --> jGrasp has not been implemented in the installer script yet. Cannot remove + echo "Install finished." + exit + ;; + "SE" ) + echo -e "Welcome to the TigerOS Software Engineering removal script.\n + This script will remove ruby, eclipse, Spin, sqlite3 and MIT Alloy from your machine." + while true; do + read -p "Do you wish to continue? [y/n] " yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + esac + done + # Installer script has not implemented this section yet. Cannot remove files. + echo "All files have been removed." + exit + ;; + "Quit") + break + ;; + *) + echo "Invalid Option." + ;; + esac +done