From 30edd5ec0ba3d521838e2de57da1352a42fe4184 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Tue, 18 Oct 2022 23:44:22 -0700 Subject: [PATCH] Add 'scripts/pmainstall.sh' --- scripts/pmainstall.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/pmainstall.sh diff --git a/scripts/pmainstall.sh b/scripts/pmainstall.sh new file mode 100644 index 0000000..9859639 --- /dev/null +++ b/scripts/pmainstall.sh @@ -0,0 +1,26 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin + +while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do + read -p "Would you like to uninstall phpMyAdmin? (y/n) " go +done + +if [ "$go" == 'n' ]; then + exit +fi + +sudo apt update && apt upgrade -y +sudo apt install software-properties-common +sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y +sudo add-apt-repository ppa:ondrej/php +sudo phpenmod mbstring +sudo systemctl restart apache2 + + + + + + + + +