1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Hide apt output when installing duplicity

This commit is contained in:
downtownallday 2022-10-11 08:19:51 -04:00
parent 26fa200014
commit d786fa2790

View File

@ -65,7 +65,16 @@ echo "Shutting down services"
ehdd/shutdown.sh || exit 1
if [ ! -x /usr/bin/duplicity ]; then
apt-get install -y -qq duplicity
echo "Installing duplicity"
tmpf=$(mktemp)
apt-get install -y duplicity &> "$tmpf"
if [ $? -ne 0 ]; then
echo "Failed: " 1>&2
cat "$tmpf" 1>&2
rm -f "$tmpf"
exit 1
fi
rm -f "$tmpf"
fi
# Ensure users and groups are created so that duplicity properly