mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[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:
committed by
GitHub
parent
59bc59f568
commit
7b9719416b
@@ -32,3 +32,11 @@ echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
|
|||||||
# Create symlink for tests running
|
# Create symlink for tests running
|
||||||
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user