mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-09 09:53:47 +02:00
lots and lots of changes
This commit is contained in:
@@ -25,7 +25,7 @@ echo ""
|
||||
echo "It will now install the following packages: dialog, expect, sharutils,gnupg1 & 2, official_repo, unzip"
|
||||
sleep 2
|
||||
echo "Install Debian-Repos"
|
||||
bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/official_repo.sh') > /dev/null
|
||||
bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/official_repo_quick.sh') > /dev/null
|
||||
echo "ok."
|
||||
sudo apt update && apt install dialog expect sharutils gnupg gnupg2 gnupg1 unzip zip -y
|
||||
GEN_PASS=$(
|
||||
@@ -108,11 +108,10 @@ clear
|
||||
mkdir /var/www/html/phpmyadmin
|
||||
unzip phpMyAdmin-5.1.3-all-languages.zip
|
||||
mv phpMyAdmin-5.1.3-all-languages/* /var/www/html/phpmyadmin
|
||||
sudo chown -R 33:33 /var/www/html/phpmyadmin
|
||||
rm /var/www/html/phpmyadmin/config.inc.php
|
||||
wget https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/res/phpmyadmin-config.inc.php > /var/www/html/phpmyadmin/config.inc.php
|
||||
curl https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/res/phpmyadmin-config.inc.php --output /var/www/html/phpmyadmin/config.inc.php
|
||||
sed "${row0},${row1}d" /var/www/html/phpmyadmin/config.inc.php
|
||||
sudo chmod 660 /var/www/html/phpmyadmin/config.inc.php
|
||||
sudo chown -R 33:33 /var/www/html/phpmyadmin
|
||||
sudo systemctl restart apache2
|
||||
echo "CREATE USER 'mysqladmin'@'localhost' IDENTIFIED BY '$MYSQL_MYSQLADMIN_PASSWORD'; GRANT ALL PRIVILEGES ON *.* TO 'mysqladmin'@'localhost'; FLUSH PRIVILEGES;" | mysql -u root -password="$MYSQL_ROOT_PASSWORD"
|
||||
echo "GRANT ALL PRIVILEGES ON *.* TO 'mysqladmin'@'localhost';" | mysql -u root -password="$MYSQL_ROOT_PASSWORD"
|
||||
|
||||
63
sh_scripts/official_repo_quick.sh
Normal file
63
sh_scripts/official_repo_quick.sh
Normal file
@@ -0,0 +1,63 @@
|
||||
#!/bin/bash
|
||||
SYSTEM=$(lsb_release -sr | cut -d. -f1)
|
||||
# Make sure only root can run our script
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
clear
|
||||
echo "################################################"
|
||||
echo "# Version: 0.1v #"
|
||||
echo "# #"
|
||||
echo "# Linux #"
|
||||
echo "# Automatically Repo edit #"
|
||||
echo "# #"
|
||||
echo "# by #"
|
||||
echo "# johanneskr.de #"
|
||||
echo "# #"
|
||||
echo "# #"
|
||||
echo "################################################"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "DE >"
|
||||
echo "Dieses Script startet gleich automatisch."
|
||||
echo ""
|
||||
echo "EN >"
|
||||
echo "This script will start automatically."
|
||||
|
||||
if [ "$SYSTEM" == "11" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-11.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
if [ "$SYSTEM" == "10" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-10.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
if [ "$OLD" == "9" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/debian-9.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
if [ "$SYSTEM" == "20" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-20.04.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
if [ "$SYSTEM" == "18" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-18.04.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
if [ "$SYSTEM" == "16" ]; then
|
||||
curl "https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/repos/ubuntu-16.04.txt" -o /etc/apt/sources.list
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install curl wget apt-transport-https dirmngr neofetch htop nload git -y
|
||||
echo "Have Fun with the Official Repos :)"
|
||||
fi
|
||||
Reference in New Issue
Block a user