[Ubuntu] Disable motd updates metadata (#4873)

* Disable motd updates metadata

* check daemon.conf config exists

* mask fwupd-refresh.timer service
This commit is contained in:
Aleksandr Chebotov
2022-01-13 11:23:56 +03:00
committed by GitHub
parent 59bc59f568
commit 7b9719416b

View File

@@ -31,4 +31,12 @@ echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
# Create symlink for tests running
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
# Disable motd updates metadata
sed -i 's/ENABLED=1/ENABLED=0/g' /etc/default/motd-news
if [[ -f "/etc/fwupd/daemon.conf" ]]; then
sed -i 's/UpdateMotd=true/UpdateMotd=false/g' /etc/fwupd/daemon.conf
systemctl mask fwupd-refresh.timer
fi