Commit graph

23 commits

Author SHA1 Message Date
Christian Hesse d75ef3bd69 packages-update: add error handling, also run cloud-backup 2020-07-07 12:18:37 +02:00
Christian Hesse b31d1a0f01 packages-update: do not install downgrade without confirmation 2020-07-07 09:30:48 +02:00
Christian Hesse 71ad56aacc explicitly name the license
Copyright (C) 2013-2020 Christian Hesse <mail@eworm.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

https://www.gnu.org/licenses/#GPL
https://www.gnu.org/licenses/gpl.html
https://www.gnu.org/licenses/gpl.md
2020-06-19 22:17:42 +02:00
Christian Hesse 856c879fd8 packages-update: accept lower and upper case characters 2020-05-26 22:59:50 +02:00
Christian Hesse 93e72b5d07 packages-update: use $LogPrintExit 2020-04-03 17:22:03 +02:00
Christian Hesse d075cce0ef add doc/packages-update.md 2020-03-27 22:12:49 +01:00
Christian Hesse 001e7eeb39 global-functions: sort alphabetically 2020-02-28 15:26:26 +01:00
Christian Hesse ceaa83b83e global-functions: merge $LogAnd{Error,Put} to $LogPrintExit ...
... and fix logging.

Logging with severity from variable (:log $severity ...) is not
possible, this is considered a syntax error. Also the 'workaround' with
parsing code failed with missing message in log.

The reliable code is a lot longer, so merge the two functions to save a
lot of duplicate code.
2020-02-26 14:19:54 +01:00
Christian Hesse 6036edb506 packages-update: use $LogAndError 2020-02-26 12:58:49 +01:00
Christian Hesse 3ebf68a08c global-functions: $LogAndError: add severity 2020-02-26 12:09:19 +01:00
Christian Hesse 9b9ad20b3d packages-update: use $LogAndError 2020-02-26 11:51:49 +01:00
Christian Hesse afb9839073 update copyright for 2020 2020-01-01 17:00:39 +01:00
Christian Hesse f9c9d67cc9 packages-update: improve wording 2019-12-20 14:38:42 +01:00
Christian Hesse 7365bfa525 packages-update: lock against multiple invocation 2019-12-05 11:41:49 +01:00
Christian Hesse 9548641b60 packages-update: skip the interactive part of non-terminal 2019-12-04 09:21:07 +01:00
Christian Hesse c8d6c4597f packages-update: add random delay for scheduler 2019-09-11 12:36:24 +02:00
Christian Hesse ecc281446c packages-update: add option to schedule reboot 2019-09-02 09:39:19 +02:00
Christian Hesse 6699545157 packages-update: allow to downgrade on change of update channel 2019-07-24 10:49:51 +02:00
Christian Hesse 7fe0938f86 packages-update: break if latest version is unknown 2019-07-24 10:22:37 +02:00
Christian Hesse 3aa4d7ea50 packages-update: get values into array 2019-07-24 10:13:39 +02:00
Christian Hesse 1e075d8d64 packages-update: run email-backup and/or upload-backup 2019-07-19 11:46:29 +02:00
Christian Hesse b35c0b8a6f always write warnings and errors to log 2019-04-03 21:30:43 +02:00
Christian Hesse e991c82016 add script 'packages-update' 2019-02-19 16:47:41 +01:00