mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 18:41:32 -05:00
Update install.sh
Just making the code a tiny bit more consistent
This commit is contained in:
parent
14b80299a0
commit
86134f20ae
@ -355,7 +355,7 @@ repositories_setup(){
|
|||||||
dpkg --remove-architecture i386
|
dpkg --remove-architecture i386
|
||||||
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
|
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
|
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
|
||||||
if [ "$lsb_dist" = "ubuntu" ]; then
|
if [ "$lsb_dist" = "ubuntu" ]; then
|
||||||
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
|
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
|
||||||
add-apt-repository -y ppa:chris-lea/redis-server
|
add-apt-repository -y ppa:chris-lea/redis-server
|
||||||
@ -363,9 +363,8 @@ repositories_setup(){
|
|||||||
add-apt-repository -y ppa:certbot/certbot
|
add-apt-repository -y ppa:certbot/certbot
|
||||||
add-apt-repository -y ppa:nginx/development
|
add-apt-repository -y ppa:nginx/development
|
||||||
fi
|
fi
|
||||||
apt -y install tuned
|
apt -y install tuned dnsutils
|
||||||
apt-get install dnsutils -y
|
tuned-adm profile latency-performance
|
||||||
tuned-adm profile latency-performance
|
|
||||||
elif [ "$lsb_dist" = "debian" ]; then
|
elif [ "$lsb_dist" = "debian" ]; then
|
||||||
apt-get -y install ca-certificates apt-transport-https
|
apt-get -y install ca-certificates apt-transport-https
|
||||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
|
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
|
||||||
@ -387,7 +386,7 @@ repositories_setup(){
|
|||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
apt-get -y autoremove
|
apt-get -y autoremove
|
||||||
apt-get -y autoclean
|
apt-get -y autoclean
|
||||||
apt-get -y install dnsutils curl
|
apt-get -y install curl
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
||||||
if [ "$lsb_dist" = "fedora" ] ; then
|
if [ "$lsb_dist" = "fedora" ] ; then
|
||||||
if [ "$dist_version" = "32" ]; then
|
if [ "$dist_version" = "32" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user