l="deb [arch=amd64] $url $(debian-codename-compat) stable"
if ! grep -xFq "$l" /etc/apt/sources.list{,.d/*.list}; then
- sudo add-apt-repository $l
+ sudo add-apt-repository "$l"
p update
fi
# docker eats up a fair amount of cpu when doing nothing, so don't enable it unless
EOF
f=/etc/apt/sources.list.d/iridium-browser.list
if ! diff -q $t $f; then
- cp $t $f
- chmod 644 $f
+ s cp $t $f
+ s chmod 644 $f
p update
fi
pi iridium-browser
EOF
f=/etc/apt/sources.list.d/bionic.list
if ! diff -q $t $f; then
- cp $t $f
- chmod 644 $f
+ s cp $t $f
+ s chmod 644 $f
p update
fi
# 450 seems likely to be unused. we need to specify one or else
# it won't be stable across installs.
if ! getent passwd debian-transmission > /dev/null; then
+ s groupadd -g 450 debian-transmission
case $distro in
arch)
- s groupadd -g 450 debian-transmission
s useradd \
--system \
--create-home \
--gid 450 \
--uid 450 \
--system \
- --group \
--no-create-home \
--disabled-password \
--home /var/lib/transmission-daemon \
# just the latest stable at the time of writing
# TODO, maybe put this all into a build script,
# and do some automatic updates
- wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
+ wget -q https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
s tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
rm -f *
fi