Skip to content

Commit 5a52c7c

Browse files
authored
Update Setup.sh
1 parent dc8b578 commit 5a52c7c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

RaspberryPi/Scripts/Setup.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export DEBIAN_FRONTEND=noninteractive
2+
13
echo "Install Pi-Hole"
24
curl -sSL https://install.pi-hole.net | sudo bash
35

@@ -11,8 +13,9 @@ git clone https://github.com/jmcerrejon/PiKISS.git && cd PiKISS
1113
git config --global http.sslVerify false
1214
git pull
1315

14-
echo "Replace Bash shell with Dash shell"
15-
sudo dpkg-reconfigure dash
16+
# TODO: might break DietPi
17+
# echo "Replace Bash shell with Dash shell"
18+
# sudo dpkg-reconfigure dash
1619

1720
echo "Install PiApps-terminal_bash-edition"
1821
echo "https://github.com/Itai-Nelken/PiApps-terminal_bash-edition"
@@ -27,6 +30,13 @@ APT::Get::AllowUnauthenticated "true";
2730
Acquire::CompressionTypes::Order:: "gz";
2831
APT::Acquire::Max-Parallel-Downloads "5";' | sudo tee /etc/apt/apt.conf.d/99parallel
2932

33+
echo -e 'APT::Periodic::Unattended-Upgrade "1";
34+
APT::Periodic::AutocleanInterval "7";
35+
APT::Periodic::Download-Upgradeable-Packages "1";
36+
Unattended-Upgrade::Remove-Unused-Dependencies "true";
37+
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
38+
Unattended-Upgrade::MinimalSteps "true";' | sudo tee /etc/apt/apt.conf.d/50-unattended-upgrades
39+
3040

3141
sudo netselect-apt stable && sudo mv sources.list /etc/apt/sources.list && sudo apt update
3242

0 commit comments

Comments
 (0)