Compare commits
7 Commits
14c65580fc
...
dev
Author | SHA1 | Date | |
---|---|---|---|
931e03a7db | |||
a02e2830ef | |||
31fe64c2e0 | |||
9ccbe37569 | |||
6aa2168f97 | |||
6b3a3bffd3 | |||
421f67b5bb |
@ -44,11 +44,11 @@
|
||||
|
||||
### `wget -O pmainstall.sh https://sop.wtf/sh/pmainstall && bash pmainstall.sh`
|
||||
|
||||
### ✔️ Uninstall
|
||||
### ✔️ Uninstall (Only works for Apache2 currently)
|
||||
|
||||
### `wget -O pmauninstall.sh https://sop.wtf/sh/pmauninstall && bash pmauninstall.sh`
|
||||
|
||||
### ✔️ Update
|
||||
### ✔️ Update (Only works for Apache2 currently)
|
||||
|
||||
### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh`
|
||||
|
||||
|
@ -15,6 +15,6 @@ Listen 8080
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/phpmyadmin.error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/phpmyadmin.access.log combined
|
||||
|
||||
# Error log location should be in /var/log/apache2
|
||||
|
||||
</VirtualHost>
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
@ -16,15 +16,16 @@ do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
set -b
|
||||
ping -c1 "github.com" &>"/dev/null"
|
||||
|
||||
if [[ "${?}" -ne 0 ]]; then
|
||||
echo "I am unable to access Github.com, that is needed to continue this Install."
|
||||
elif [[ "${#args[@]}" -eq 0 ]]; then
|
||||
GITEA_VER="1.19.0"
|
||||
GITEA_VER="1.19.1"
|
||||
sudo systemctl stop gitea
|
||||
sudo apt-get install git -y
|
||||
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
||||
sudo wget -O /usr/local/bin/gitea htt://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
||||
sudo chmod +x /usr/local/bin/gitea
|
||||
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
|
||||
sudo mkdir -p /var/lib/gitea/{custom,data,log}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to Update Gitea? [Y/n] " input
|
||||
@ -20,7 +20,7 @@ ping -c1 "github.com" &>"/dev/null"
|
||||
if [[ "${?}" -ne 0 ]]; then
|
||||
echo "I am unable to access Github.com, that is needed to continue this Install."
|
||||
elif [[ "${#args[@]}" -eq 0 ]]; then
|
||||
GITEA_VER="1.18.5"
|
||||
GITEA_VER="1.19.1"
|
||||
sudo systemctl stop gitea
|
||||
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
||||
sudo chmod +x /usr/local/bin/gitea
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install Gogs? [Y/n] " input
|
||||
@ -17,7 +17,7 @@ do
|
||||
done
|
||||
|
||||
sudo apt install wget git -y
|
||||
GOGS_VER="0.12.10"
|
||||
GOGS_VER="0.13.0"
|
||||
sudo wget -O linux_amd64.tar.gz https://dl.gogs.io/$GOGS_VER/gogs_"$GOGS_VER"_linux_amd64.tar.gz
|
||||
sudo tar xvf linux_amd64.tar.gz
|
||||
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install Gogs? This is not reversible. [Y/n] " input
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
@ -16,7 +16,7 @@ do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
sudo apt-get install bzr git mercurial go- -y
|
||||
sudo apt-get install bzr git mercurial golang -y
|
||||
git clone https://github.com/hockeypuck/packaging /var/lib/hockeypuck
|
||||
cd packaging
|
||||
./prepare.bash
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install Mastodon? [Y/n] " input
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
@ -17,14 +17,14 @@ do
|
||||
esac
|
||||
done
|
||||
while [ "$go" != 'apache' ] && [ "$go" != 'nginx' ]; do
|
||||
read -p "Would you like to install using Nginx or Apache? (nginx/apache)" go
|
||||
read -p "Would you like to install using Nginx or Apache? (nginx/apache) " go
|
||||
done
|
||||
if [ "$go" == 'nginx' ]; then
|
||||
PHP_VER="8.2"
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo apt install software-properties-common -y && sudo add-apt-repository --yes ppa:ondrej/nginx-mainline && sudo apt install php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx -y
|
||||
sudo apt-get install build-essential lsb-release software-properties-common -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/php && sudo apt install php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx-full -y
|
||||
sudo systemctl stop nginx
|
||||
sudo apt remove php8.1-fpm php8.1-* -y
|
||||
sudo wget -O /etc/nginx/conf.d/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmanginx.conf
|
||||
sudo systemctl enable nginx
|
||||
sudo systemctl start nginx
|
||||
@ -53,17 +53,10 @@ fi
|
||||
if [ "$go" == 'apache' ]; then
|
||||
PHP_VER="8.2"
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/apache2 && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl apache2 -y
|
||||
sudo apt-get install build-essential lsb-release software-properties-common -y
|
||||
sudo add-apt-repository --yes ppa:ondrej/php && apt install apache2 libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
|
||||
sudo systemctl stop apache2
|
||||
sudo apt remove php8.1-fpm php8.1-* -y
|
||||
sudo wget -O /etc/apache2/sites-enabled/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmaapache.conf
|
||||
sudo phpenmod mbstring
|
||||
sudo a2dismod php$PHP_VER
|
||||
sudo a2dismod mpm_prefork
|
||||
sudo a2enmod mpm_event
|
||||
sudo a2enmod proxy
|
||||
sudo a2enmod proxy_fcgi
|
||||
sudo a2enconf php$PHP_VER-fpm
|
||||
sudo systemctl restart php$PHP_VER-fpm
|
||||
sudo systemctl reload apache2
|
||||
sudo systemctl enable apache2
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install Wordpress? [Y/n] " input
|
||||
|
Reference in New Issue
Block a user