install.sh aktualisiert

This commit is contained in:
2024-10-16 14:32:47 +02:00
parent 95ae6ffa2f
commit 1858524a0f

View File

@@ -42,12 +42,11 @@ echo -e "${GREEN}✔${NC} Root login disabled..."
echo -e "${RED}${NC} Copying required files..." echo -e "${RED}${NC} Copying required files..."
sudo rm ./rps-client/.gitignore ./rps-client/LICENSE ./rps-client/README.md >/dev/null 2>&1 sudo rm ./rps-client/.gitignore ./rps-client/LICENSE ./rps-client/README.md >/dev/null 2>&1
sudo rsync -axHAXS --numeric-ids --info=progress2 --no-owner --no-group ./rps-client/* / >/dev/null 2>&1 sudo rsync -a --numeric-ids --info=progress2 --no-owner --no-group ./rps-client/* / >/dev/null 2>&1
echo -e "${GREEN}${NC} Required files copied..." echo -e "${GREEN}${NC} Required files copied..."
echo -e "${RED}${NC} Setting file permissions..." echo -e "${RED}${NC} Setting file permissions..."
sudo chown loginuser:loginuser /home/loginuser/.xinitrc >/dev/null 2>&1 sudo chown loginuser:loginuser -R /home/loginuser >/dev/null 2>&1
sudo chown loginuser:loginuser /home/loginuser/.bash_profile >/dev/null 2>&1
sudo chmod +x /root/remove_unused_kernel.sh >/dev/null 2>&1 sudo chmod +x /root/remove_unused_kernel.sh >/dev/null 2>&1
sudo chmod +x /usr/bin/watchdog >/dev/null 2>&1 sudo chmod +x /usr/bin/watchdog >/dev/null 2>&1
sudo chmod +x /usr/bin/chromium-monitor >/dev/null 2>&1 sudo chmod +x /usr/bin/chromium-monitor >/dev/null 2>&1
@@ -57,7 +56,7 @@ echo -e "${RED}→${NC} Enabling services..."
sudo systemctl daemon-reload >/dev/null 2>&1 sudo systemctl daemon-reload >/dev/null 2>&1
sudo systemctl enable watchdog >/dev/null 2>&1 sudo systemctl enable watchdog >/dev/null 2>&1
sudo systemctl enable chromium-monitor >/dev/null 2>&1 sudo systemctl enable chromium-monitor >/dev/null 2>&1
sudo systemctl enable getty@tty1 >/dev/null 2>&1 sudo systemctl restart getty@tty1 >/dev/null 2>&1
echo -e "${GREEN}${NC} Services enabled..." echo -e "${GREEN}${NC} Services enabled..."
echo -e "${RED}${NC} Cleaning up old kernels..." echo -e "${RED}${NC} Cleaning up old kernels..."