From 5af691b06c2e27dcba662fb97596c2a082ad16ca Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Sat, 26 Aug 2023 16:46:31 -0700 Subject: [PATCH] First push of single script testing --- README.md | 133 ++------------------------------------------- scripts/scripts.sh | 78 ++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 129 deletions(-) create mode 100644 scripts/scripts.sh diff --git a/README.md b/README.md index 2c65391..1ef8b46 100644 --- a/README.md +++ b/README.md @@ -1,134 +1,9 @@ # The Linux List +### ⚠️ Super Ultra Untested ⚠️ + ## `~Script Installs~` -### Tested scrips ✔️ +## Now Just One script! -### Broken Scripts ❌ - -### Untested Scripts ⚠️ - -### Retired Scripts 💀 - -## Don't like typing "Y"? Just add a "u" after the /sh/ `(/sh/u/RANDOMSCRIPT)` - ---- - -## [Gitea](https://about.gitea.com/) - -### ✔️ Install - -### `wget -O giteainstall.sh https://sop.wtf/sh/giteainstall && bash giteainstall.sh` - -### ✔️ Uninstall - -### `wget -O gitearemove.sh https://sop.wtf/sh/gitearemove && bash gitearemove.sh` - -### ✔️ Update - -### `wget -O giteaupdate.sh https://sop.wtf/sh/giteaupdate && bash giteaupdate.sh` - ---- - -## [Go Hugo](https://gohugo.io/) - -### ✔️ Install/Update - -### `wget -O hugoinstall.sh https://sop.wtf/sh/hugoinstall && bash hugoinstall.sh` - -### ✔️ Uninstall - -### `rm -rf /usr/local/bin/hugo` - ---- -## [Go](https://go.dev/) - -### ✔️ Install/Update - -### `wget -O goinstall.sh https://sop.wtf/sh/goinstall && bash goinstall.sh` - -### ✔️ Uninstall - -### `rm -rf /usr/local/go` - ---- - -## [MariaDB](https://mariadb.org/) - -### ✔️ Install - -### `wget -O mariadbinstall.sh https://sop.wtf/sh/mariadbinstall && bash mariadbinstall.sh` - -### ✔️ Uninstall - -### `sudo apt remove mariadb-server mariadb-client -y && apt autoremove -y` - ---- - -## [phpMyAdmin](https://www.phpmyadmin.net/) - -### ✔️ Install - -### `wget -O pmainstall.sh https://sop.wtf/sh/pmainstall && bash pmainstall.sh` - -### ✔️ Uninstall (Only works for Apache2 currently) - -### `wget -O pmauninstall.sh https://sop.wtf/sh/pmauninstall && bash pmauninstall.sh` - -### ✔️ Update - -### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh` - ---- - -## [MongoDB](https://www.mongodb.com/) - -### ⚠️ Install - -### `wget -O mongodbinstall.sh https://sop.wtf/sh/mongodbinstall && bash mongodbinstall.sh` - -### ✔️ Uninstall - -### `sudo apt remove mongodb-org libssl1.1 -y && sudo apt autoremove` - ---- - -## [Gitlab](https://about.gitlab.com/) (Retired, Now falls back to offical script) - -### 💀 Install - -### `wget -O gitlabinstall.sh https://sop.wtf/sh/gitlabinstall && bash gitlabinstall.sh` - -### 💀 Uninstall - -### `wget -O gitlabuninstall.sh https://sop.wtf/sh/gitlabuninstall && bash gitlabuninstall.sh` - ---- - -## [Gogs](https://gogs.io/) - -### ✔️ Install - -### `wget -O gogsinstall.sh https://sop.wtf/sh/gogsinstall && bash gogsinstall.sh` - -### ✔️ Uninstall - -### `wget -O gogsuninstall.sh https://sop.wtf/sh/gogsuninstall && bash gogsuninstall.sh` - ---- - -## [Wordpress](https://wordpress.org/) - -### ⚠️ Install - -### `wget -O wpinstall.sh https://sop.wtf/sh/wpinstall && bash wpinstall.sh` - ---- - -## [Fail2Ban](https://www.fail2ban.org/) - -### ✔️ Install - -### `wget -O fail2baninstall.sh https://sop.wtf/sh/fail2baninstall && bash fail2baninstall.sh` - ---- +### `wget -O scripts.sh https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/2.0/scripts/scripts.sh && bash scripts.sh` diff --git a/scripts/scripts.sh b/scripts/scripts.sh new file mode 100644 index 0000000..aaa5b99 --- /dev/null +++ b/scripts/scripts.sh @@ -0,0 +1,78 @@ +#!/bin/bash + case $1 in + (install gitea) + wget -O giteainstall.sh https://sop.wtf/sh/giteainstall && bash giteainstall.sh + ;; + (remove gitea) + wget -O gitearemove.sh https://sop.wtf/sh/gitearemove && bash gitearemove.sh + ;; + (update gitea) + wget -O giteaupdate.sh https://sop.wtf/sh/giteaupdate && bash giteaupdate.sh + ;; + (install hugo) + wget -O hugoinstall.sh https://sop.wtf/sh/hugoinstall && bash hugoinstall.sh + ;; + (update hugo) + wget -O hugoinstall.sh https://sop.wtf/sh/hugoinstall && bash hugoinstall.sh + ;; + (remove hugo) + rm -rf /usr/local/bin/hugo + ;; + (install go) + wget -O goinstall.sh https://sop.wtf/sh/goinstall && bash goinstall.sh + ;; + (update go) + wget -O goinstall.sh https://sop.wtf/sh/goinstall && bash goinstall.sh + ;; + (remove go) + rm -rf /usr/local/go + ;; + (install golang) + wget -O goinstall.sh https://sop.wtf/sh/goinstall && bash goinstall.sh + ;; + (update golang) + wget -O goinstall.sh https://sop.wtf/sh/goinstall && bash goinstall.sh + ;; + (remove golang) + rm -rf /usr/local/go + ;; + (install mariadb) + wget -O mariadbinstall.sh https://sop.wtf/sh/mariadbinstall && bash mariadbinstall.sh + ;; + (remove mariadb) + sudo apt remove mariadb-server mariadb-client -y && apt autoremove -y + ;; + (install phpmyadmin) + wget -O pmainstall.sh https://sop.wtf/sh/pmainstall && bash pmainstall.sh + ;; + (update phpmyadmin) + wget -O pmauninstall.sh https://sop.wtf/sh/pmauninstall && bash pmauninstall.sh + ;; + (remove phpmyadmin) + wget -O pmauninstall.sh https://sop.wtf/sh/pmauninstall && bash pmauninstall.sh + ;; + (install mongodb) + wget -O mongodbinstall.sh https://sop.wtf/sh/mongodbinstall && bash mongodbinstall.sh + ;; + (remove mongodb) + sudo apt remove mongodb-org libssl1.1 -y && sudo apt autoremove + ;; + (remove gogs) + wget -O gogsuninstall.sh https://sop.wtf/sh/gogsuninstall && bash gogsuninstall.sh + ;; + (install gogs) + wget -O gogsinstall.sh https://sop.wtf/sh/gogsinstall && bash gogsinstall.sh + ;; + (install wordpress) + wget -O wpinstall.sh https://sop.wtf/sh/wpinstall && bash wpinstall.sh + ;; + (install wp) + wget -O wpinstall.sh https://sop.wtf/sh/wpinstall && bash wpinstall.sh + ;; + (install fail2ban) + wget -O fail2baninstall.sh https://sop.wtf/sh/fail2baninstall && bash fail2baninstall.sh + ;; + (install f2b) + wget -O fail2baninstall.sh https://sop.wtf/sh/fail2baninstall && bash fail2baninstall.sh + ;; + esac \ No newline at end of file