jirutka / apk-autoupdate Goto Github PK
View Code? Open in Web Editor NEWAutomatic updates for Alpine Linux and other systems using apk-tools
License: MIT License
Automatic updates for Alpine Linux and other systems using apk-tools
License: MIT License
Hey there, thanks for building this! I run my Ubuntu distros using their livepatch service so critical stuff gets patched live on-the-fly. Is there a way to do this on Alpine too without downtime?
--ignore
is available, so the hacky workaround can be removed.
Creating this issue as a sort of reminder.
I know there are still issues like #3 but maybe it is time to create a tagged release candidate if not a tagged stable release?
I've been hosting all my stuff on Alpine and was wondering if something like this existed.
After some googling I found this, and it made me super happy. Do you think this is ready for prime time? I'm also happy to start testing the package. How can I help?
I noticed all messages, regardless of their importance are redirected to stderr.
This bother me because I've set up a cronjob for apk-autoupdate to run every day like so:
[email protected]
0 2 * * * /usr/sbin/apk-autoupdate > /dev/null
I would expect "Checking available updates..." to be redirected to /dev/null accordingly. Right now, I get an email every day telling me that apk-autoupdate is checking for available updates.
(suggested by @ncopa)
Hi,
I am a graphic designer. As you can see from my profile, I make contributions to open source projects. I would also like to contribute to this project. Do you need a design? I can design a logo if you want.
Running on Alpine edge, no changes to default configuration. Getting the following error message. Packages are nevertheless updated, but of course relevant processes not restarted.
apk-autoupdate: Checking available updates...
apk-autoupdate: Upgrading packages: busybox-initscripts
(1/1) Upgrading busybox-initscripts (3.1-r5 -> 3.1-r6)
Executing busybox-initscripts-3.1-r6.post-upgrade
OK: 250 MiB in 99 packages
procs-need-restart: invalid option: -c
Usage: procs-need-restart [options] [PID...]
Find processes that use (maps into memory) files which have been deleted
or replaced on disk (and the new files are not identical to the mapped ones).
If no PID is specified, scan all processes.
This program is part of apk-autoupdate.
Options:
-f PATT* Specify paths of mapped files to include/exclude from checking.
Syntax is identical with fnmatch(3) with no flags, but with
leading "!" for negative match (exclude). This option may be
repeated.
-v Report all affected mapped files.
-h Show this message and exit.
-V Print program version and exit.
Please report bugs at <https://github.com/jirutka/apk-autoupdate/issues>
-----BEGIN SUMMARY-----
Upgraded packages:
busybox-initscripts (3.1-r5 -> 3.1-r6)
-----END SUMMARY-----
Disclaimer: I reproduced this only once.
% doas cat /etc/apk/autoupdate.conf
# Configuration for apk-autoupdate.
# List of packages that should not be automatically upgraded.
# Note: Case patterns (shell "case") may be used.
#packages_blacklist="linux-*"
# List of services that may be automatically restarted.
# Note: Case patterns (shell "case") may be used.
#services_whitelist=""
# List of services that should not be automatically restarted.
# Note: Case patterns (shell "case") may be used.
#services_blacklist="*"
# List of colon separated mappings between program path, the corresponding
# service and optionally action (e.g. restart, reload) to be performed.
# Example: /usr/sbin/nginx:nginx:reload.
# Note: Case patterns (shell "case") may be used in program path.
#programs_services=""
programs_services="/usr/bin/miniflux:miniflux:restart"
# List of fnmatch patterns specifying files to include/exclude from checking
# when scanning processes that use some files that have been upgraded.
#check_mapped_files_filter="!/dev/* !/home/* !/run/* !/tmp/* !/var/* *"
# Options to pass into OpenRC runscripts when restarting service.
#rc_service_opts='--ifstarted --quiet --nocolor --nodeps'
% doas crontab -l
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
0 0 * * * apk-autoupdate
When miniflux updated from 2.0.34 to 2.0.35, it should have had automatically restarted the service.
Service wasn't restarted automatically. miniflux -version
outputted 2.0.35, but my web instance was still running 2.0.34. A manual doas /etc/init.d/miniflux restart
was necessary.
Happy to provide more logs if needed for troubleshooting, just let me know which ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.