Update installer.sh
This commit is contained in:
parent
67b9b7a94b
commit
795481d0ef
64
installer.sh
64
installer.sh
@ -18,6 +18,24 @@ BRANCH=main
|
|||||||
GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw
|
GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]
|
||||||
|
then echo "Please run as root"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (whiptail --title "LanCache - Prefill" --yesno "Use SteamPrefill?." 8 78); then
|
||||||
|
echo ""
|
||||||
|
prefill=true
|
||||||
|
else
|
||||||
|
prefill=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##---------------##
|
##---------------##
|
||||||
# Pre-Updater #
|
# Pre-Updater #
|
||||||
##---------------##
|
##---------------##
|
||||||
@ -45,10 +63,9 @@ fi
|
|||||||
#$PKGI curl wget whiptail sudo
|
#$PKGI curl wget whiptail sudo
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
#Docker Requirements
|
$PKGUD
|
||||||
apt install openssh-server curl wget nload htop nano gnupg ca-certificates -y
|
$PKGI curl wget whiptail gnupg ca-certificates
|
||||||
#Steam Prefill Requirements
|
|
||||||
apt install jq unzip -y
|
|
||||||
|
|
||||||
##------------------##
|
##------------------##
|
||||||
# Docker Compose #
|
# Docker Compose #
|
||||||
@ -59,8 +76,17 @@ curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/
|
|||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt update
|
|
||||||
apt-get install docker-ce docker-ce-cli docker-compose-plugin -y
|
$PKGUD
|
||||||
|
apt list --upgradeable 2>/dev/null | cut -d/ -f1 | grep -v Listing >> /tmp/install.list
|
||||||
|
echo "openssh-server curl wget nload htop nano" >> /tmp/install.list
|
||||||
|
echo "docker-ce docker-ce-cli docker-compose-plugin" >> /tmp/install.list
|
||||||
|
|
||||||
|
if [[ $prefill == "true" ]]; then
|
||||||
|
echo "jq unzip" >> /tmp/install.list
|
||||||
|
fi
|
||||||
|
|
||||||
|
xargs < /tmp/install.list xargs $PKGI
|
||||||
systemctl enable --now docker
|
systemctl enable --now docker
|
||||||
|
|
||||||
|
|
||||||
@ -79,6 +105,13 @@ userdel branco
|
|||||||
update-grub
|
update-grub
|
||||||
|
|
||||||
|
|
||||||
|
echo "" >> /etc/sysctl.conf
|
||||||
|
echo "#Disable IPv6" >> /etc/sysctl.conf
|
||||||
|
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
|
||||||
|
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
|
||||||
|
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
|
||||||
|
|
||||||
|
|
||||||
##-------------##
|
##-------------##
|
||||||
# Installer #
|
# Installer #
|
||||||
##-------------##
|
##-------------##
|
||||||
@ -92,9 +125,6 @@ wget $GIT/$BRANCH/config/lancache/docker.yml -O /opt/lancache/docker-compose.yml
|
|||||||
# Steam Prefill #
|
# Steam Prefill #
|
||||||
##----------------##
|
##----------------##
|
||||||
|
|
||||||
#/opt/lancache/tools/SteamPrefill/SteamPrefill prefill --recent --os windows --no-ansi
|
|
||||||
#/opt/lancache/tools/SteamPrefill/SteamPrefill prefill --os windows --no-ansi
|
|
||||||
|
|
||||||
cd /opt/lancache/tools/SteamPrefill
|
cd /opt/lancache/tools/SteamPrefill
|
||||||
curl -o /opt/lancache/tools/SteamPrefill/update.sh --location "https://raw.githubusercontent.com/tpill90/steam-lancache-prefill/master/scripts/update.sh"
|
curl -o /opt/lancache/tools/SteamPrefill/update.sh --location "https://raw.githubusercontent.com/tpill90/steam-lancache-prefill/master/scripts/update.sh"
|
||||||
chmod +x /opt/lancache/tools/SteamPrefill/update.sh
|
chmod +x /opt/lancache/tools/SteamPrefill/update.sh
|
||||||
@ -114,6 +144,14 @@ systemctl enable steamprefill-selected.service
|
|||||||
systemctl enable steamprefill-recent.service
|
systemctl enable steamprefill-recent.service
|
||||||
|
|
||||||
|
|
||||||
|
##---------------##
|
||||||
|
# Cleaning up #
|
||||||
|
##---------------##
|
||||||
|
|
||||||
|
apt remove --purge vim* mailcap* man-db* manpages* laptop-detect* publicsuffix* xkb-data* python*
|
||||||
|
apt autoremove -y
|
||||||
|
|
||||||
|
|
||||||
##------------------##
|
##------------------##
|
||||||
# Start LanCache #
|
# Start LanCache #
|
||||||
##------------------##
|
##------------------##
|
||||||
@ -123,9 +161,5 @@ docker compose up -d
|
|||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
|
|
||||||
##---------------##
|
#/opt/lancache/tools/SteamPrefill/SteamPrefill prefill --recent --os windows --no-ansi
|
||||||
# Cleaning up #
|
#/opt/lancache/tools/SteamPrefill/SteamPrefill prefill --os windows --no-ansi
|
||||||
##---------------##
|
|
||||||
|
|
||||||
apt remove --purge vim* mailcap* man-db* manpages* laptop-detect* publicsuffix* xkb-data* python*
|
|
||||||
apt autoremove -y
|
|
||||||
Loading…
x
Reference in New Issue
Block a user