{"id":18974490,"url":"https://github.com/m7a/lp-trivial-automatic-update","last_synced_at":"2026-04-08T15:30:18.715Z","repository":{"id":164554633,"uuid":"289362376","full_name":"m7a/lp-trivial-automatic-update","owner":"m7a","description":"Automatic Update Script for Debian systems","archived":false,"fork":false,"pushed_at":"2024-04-28T19:58:12.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T09:07:58.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m7a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-21T20:50:18.000Z","updated_at":"2024-04-28T19:58:15.000Z","dependencies_parsed_at":"2024-04-28T20:41:46.289Z","dependency_job_id":"a91cbbbf-ecd2-4956-a00f-fce3c67231ae","html_url":"https://github.com/m7a/lp-trivial-automatic-update","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Flp-trivial-automatic-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Flp-trivial-automatic-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Flp-trivial-automatic-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7a%2Flp-trivial-automatic-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m7a","download_url":"https://codeload.github.com/m7a/lp-trivial-automatic-update/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239972035,"owners_count":19727290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T15:15:13.962Z","updated_at":"2026-04-08T15:30:18.616Z","avatar_url":"https://github.com/m7a.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nsection: 32\nx-masysma-name: trivial_automatic_update\ntitle: Trivial Automatic Update\ndate: 2020/08/21 22:24:45\nlang: en-US\nauthor: [\"Linux-Fan, Ma_Sys.ma (Ma_Sys.ma@web.de)\"]\nkeywords: [\"mdvl\", \"debian\", \"update\", \"automatic\", \"package\"]\nx-masysma-version: 1.0.0\nx-masysma-repository: https://www.github.com/m7a/lp-trivial-automatic-update\nx-masysma-website: https://masysma.net/32/trivial_automatic_update.xhtml\nx-masysma-owned: 1\nx-masysma-copyright: |\n  Copyright (c) 2020 Ma_Sys.ma.\n  For further info send an e-mail to Ma_Sys.ma@web.de.\n---\nDescription\n===========\n\nPackage `mdvl-trivial-automatic-update` supplies a systemd timer for\nperiodically invoking `unattended-upgrades` and permits multiple mirrors where\nthe first one to be online is chosen. This allows upgrading a server from a\nlocal mirror which is preferred if it is online but allows running on another\nmirror for fallback.\n\nTo use a mirror depending on which is online, `/etc/apt/sources.list` is\ntemporarily replaced with a script-created one before invoking the actual\n`unattended-upgrades`.\n\nCompilation and Installation\n============================\n\nThe package can be generated by calling `ant package` on a Debian system with\nthe necessary tools to build packages and `ant` installed. Alternatively, the\nrepository for [megasync(32)](megasync.xhtml) includes a compiled version of\nthis package:\n\u003chttps://github.com/m7a/lo-megasync/blob/master/mdvl-trivial-automatic-update_1.0.3_all.deb?raw=true\u003e.\n\nInstallation can be performed with apt as follows:\n\n\t# apt install ./mdvl-trivial-automatic-update*all.deb\n\nAfterwards, the update process can be enabled by calling\n\n\t# systemctl enable mdvl-trivial-automatic-update.timer\n\nIf you want to test how it runs before enabling the timer, run\n\n\t# systemctl start mdvl-trivial-automatic-update.service\n\nand then check the outputs of\n\n\t# systemctl status mdvl-trivial-automatic-update.service\n\t# journalctl -u mdvl-trivial-automatic-update.service\n\nConfiguration\n=============\n\nThe package is configured by file `/etc/ma_trivial_automatic_update.conf` which\nlooks as follows:\n\n\t# This configuration is sourced by\n\t# /usr/local/bin/ma_trivial_automatic_update\n\t# MIRRORLIST: space-separated list of mirror addresses to check.\n\tMIRRORLIST=\"192.168.1.16 ftp.de.debian.org\"\n\t# USE_LTS: if 1 disable version-update line.\n\tUSE_LTS=0\n\nTwo settings are available:\n\n`MIRRORLIST`\n:   Lists all mirrors to consult. The first one listed is preferred.\n    In the default configuration, a local mirror is expected to be present\n    at `192.168.1.16` and if it is offline, `ftp.de.debian.org` is used instead.\n\n`USE_LTS`\n:   This setting can either be 0 or 1 and configures the `sources.list` to use\n    for upgrading: Debian LTS does not include support for the\n    `RELEASENAME-updates` repository and thus the corresponding lines is only\n    generated if `USE_LTS=0` is set.\n\nFiles\n=====\n\n---------------------------------------  ----------------------------------------------------\n`ma_trivial_automatic_update.conf`       Configuration\n`mdvl-trivial-automatic-update.service`  Systemd service unit\n`mdvl-trivail-automatic-update.timer`    Systemd timer\n`ma_trivial_automatic_update`            Checks mirror status and calls `unattended-upgrades`\n`build.xml` and `debian-changelog.txt`   Package metadata\n---------------------------------------  ----------------------------------------------------\n\nUse cases\n=========\n\nAutomatic updates are always a little risky and not recommended for systems that\nsee a large fluctuation in the types of software installed because there,\nupdates may often introduce problems. For regular Debian stable systems,\nhowever, updates are often stable enough to permit automatic installation.\n\nThis package is intended to be used on small, single-purpose servers,\nvirtual machines and inside containers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7a%2Flp-trivial-automatic-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm7a%2Flp-trivial-automatic-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7a%2Flp-trivial-automatic-update/lists"}