Page 4 of 4
Re: Important alerts ... email distribution
Posted: Fri Jun 21, 2019 1:14 pm
by KBD
Jerry3904 wrote: Fri Jun 21, 2019 12:34 pm
That kernel update has been removed, and will disappear as soon as the repo being used syncs up.
Thanks Jerry!
I know in the past I could not run updates on a couple of MX machines because the keyring needed updating:
Code: Select all
sudo apt-get update
sudo apt-get install antix-archive-keyring
sudo apt-get update
I'm just thinking out loud, but if we run into a serious update problem in the future couldn't a new keyring be issued to prevent updates? That would pretty much automatically bring users to the forum and they would then see the warning. A new key could be issued with instructions when it's safe to update again. Just a thought, maybe there is a better way to do it, but stopping updates before something breaks in that situation seems better than users breaking things then having to fix it.
Re: Important alerts ... email distribution
Posted: Fri Jun 21, 2019 1:24 pm
by Jerry3904
Let's get this solved first, then turn to future questions--thanks.
Re: Important alerts ... email distribution
Posted: Fri Jun 21, 2019 2:49 pm
by kmathern
KBD wrote: Fri Jun 21, 2019 1:14 pm
I'm just thinking out loud, but if we run into a serious update problem in the future couldn't a new keyring be issued to prevent updates? That would pretty much automatically bring users to the forum and they would then see the warning. A new key could be issued with instructions when it's safe to update again. Just a thought, maybe there is a better way to do it, but stopping updates before something breaks in that situation seems better than users breaking things then having to fix it.
I'd rather not mess with keyrings, gpg keys, etc. or do anything with that interferes with updating of the apt repos, that's fragile enough as it is already imo. Instead I would rather have MX Updater monitor some other channel / source for update warnings. If it finds that there's a warning it could add the warning to the upgrade preview window, or maybe just show the warning instead of a preview of the upgrade(s). Maybe also display a different icon in the systray/notification area while a update warning is in effect.
Re: Important alerts ... email distribution
Posted: Fri Jun 21, 2019 10:01 pm
by antiX-Dave
So are we suggesting a message system something like this?
Perhaps even simpler where the script reads for a 401 vs 200 http code on a particular file?
file named apt-get-safe in /usr/local/bin
Code: Select all
#!/bin/bash
wget http://repo.antixlinux.com/check -O /tmp/check &> /dev/null
if grep "unsafe" /tmp/check &> /dev/null
then
echo "Repo is known by the dev team to be unsafe, please consult the forum for details"
echo "Do you wish to continue? (Y/N)"
read ans
case $ans in
y|Y) apt-get $@ ;;
n|N) exit ;;
esac
else
apt-get $@;
fi
/root/.bashrc containing line
And likewise for the apt command?
Re: Important alerts ... email distribution
Posted: Fri Jun 21, 2019 10:25 pm
by kmathern
antiX-Dave wrote: Fri Jun 21, 2019 10:01 pm
So are we suggesting a message system something like this? ...
Yes, I think something like that might work (maybe also include aptitude and Synaptic), and you'd still be able to use apt-get/apt if you really wanted to.
Re: Important alerts ... email distribution
Posted: Tue Jun 25, 2019 3:52 am
by ludolph
Very constructive discussion ...
So, we will wait for future developments ...
Re: Important alerts ... email distribution
Posted: Mon Jul 08, 2019 6:16 pm
by colin_b
I was just blankly staring at the wall when a simple solution to this problem popped out of the ether and into my head. I think it's worth a mention - better late than never.
Why not use MXPI to give messages to users when something crops up which they absolutely need to know?
Example:
MXPI icon displays in red > user clicks MXPI > displayed at top of MXPI (examples):
An urgent issue has arisen. Please see forum post [url].
or
There is a zero day issue with [program]. Please update software ASAP.