mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Ubuntu] put snapd auto refresh on hold (#4768)
This commit is contained in:
8
images/linux/scripts/base/snap.sh
Normal file
8
images/linux/scripts/base/snap.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Put snapd auto refresh on hold
|
||||
# as it may generate too much traffic on Canonical's snap server
|
||||
# when they are rolling a new major update out.
|
||||
# Hold is calculated as today's date + 60 days
|
||||
|
||||
snap set system refresh.hold="$(date --date='today+60 days' +%Y-%m-%dT%H:%M:%S%:z)"
|
||||
Reference in New Issue
Block a user