Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m7a/lp-trivial-automatic-update
Automatic Update Script for Debian systems
https://github.com/m7a/lp-trivial-automatic-update
Last synced: 12 days ago
JSON representation
Automatic Update Script for Debian systems
- Host: GitHub
- URL: https://github.com/m7a/lp-trivial-automatic-update
- Owner: m7a
- Created: 2020-08-21T20:50:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T19:58:12.000Z (7 months ago)
- Last Synced: 2024-04-28T20:44:19.688Z (7 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
section: 32
x-masysma-name: trivial_automatic_update
title: Trivial Automatic Update
date: 2020/08/21 22:24:45
lang: en-US
author: ["Linux-Fan, Ma_Sys.ma ([email protected])"]
keywords: ["mdvl", "debian", "update", "automatic", "package"]
x-masysma-version: 1.0.0
x-masysma-repository: https://www.github.com/m7a/lp-trivial-automatic-update
x-masysma-website: https://masysma.net/32/trivial_automatic_update.xhtml
x-masysma-owned: 1
x-masysma-copyright: |
Copyright (c) 2020 Ma_Sys.ma.
For further info send an e-mail to [email protected].
---
Description
===========Package `mdvl-trivial-automatic-update` supplies a systemd timer for
periodically invoking `unattended-upgrades` and permits multiple mirrors where
the first one to be online is chosen. This allows upgrading a server from a
local mirror which is preferred if it is online but allows running on another
mirror for fallback.To use a mirror depending on which is online, `/etc/apt/sources.list` is
temporarily replaced with a script-created one before invoking the actual
`unattended-upgrades`.Compilation and Installation
============================The package can be generated by calling `ant package` on a Debian system with
the necessary tools to build packages and `ant` installed. Alternatively, the
repository for [megasync(32)](megasync.xhtml) includes a compiled version of
this package:
.Installation can be performed with apt as follows:
# apt install ./mdvl-trivial-automatic-update*all.deb
Afterwards, the update process can be enabled by calling
# systemctl enable mdvl-trivial-automatic-update.timer
If you want to test how it runs before enabling the timer, run
# systemctl start mdvl-trivial-automatic-update.service
and then check the outputs of
# systemctl status mdvl-trivial-automatic-update.service
# journalctl -u mdvl-trivial-automatic-update.serviceConfiguration
=============The package is configured by file `/etc/ma_trivial_automatic_update.conf` which
looks as follows:# This configuration is sourced by
# /usr/local/bin/ma_trivial_automatic_update
# MIRRORLIST: space-separated list of mirror addresses to check.
MIRRORLIST="192.168.1.16 ftp.de.debian.org"
# USE_LTS: if 1 disable version-update line.
USE_LTS=0Two settings are available:
`MIRRORLIST`
: Lists all mirrors to consult. The first one listed is preferred.
In the default configuration, a local mirror is expected to be present
at `192.168.1.16` and if it is offline, `ftp.de.debian.org` is used instead.`USE_LTS`
: This setting can either be 0 or 1 and configures the `sources.list` to use
for upgrading: Debian LTS does not include support for the
`RELEASENAME-updates` repository and thus the corresponding lines is only
generated if `USE_LTS=0` is set.Files
=====--------------------------------------- ----------------------------------------------------
`ma_trivial_automatic_update.conf` Configuration
`mdvl-trivial-automatic-update.service` Systemd service unit
`mdvl-trivail-automatic-update.timer` Systemd timer
`ma_trivial_automatic_update` Checks mirror status and calls `unattended-upgrades`
`build.xml` and `debian-changelog.txt` Package metadata
--------------------------------------- ----------------------------------------------------Use cases
=========Automatic updates are always a little risky and not recommended for systems that
see a large fluctuation in the types of software installed because there,
updates may often introduce problems. For regular Debian stable systems,
however, updates are often stable enough to permit automatic installation.This package is intended to be used on small, single-purpose servers,
virtual machines and inside containers.