On Mon, 24 Feb 2025, Simon Brandt via ripe-atlas wrote:
> This is a good question. I have the same case, also with Debian and 5080 > 
> 5100
> 
> I would like to know the best practice for upgrading (using the precompiled 
> binaries) as well.
> https://github.com/RIPE-NCC/ripe-atlas-probe-doc/blob/master/manuals/Debian12-binary.en.md
> The Installation Instructions don't provide any details regarding upgrades.

I can't really speak for Debian, but it seems like some mistake slipped
into the package. According to the RPM package, the following should happen
automatically for the migration to the FHS-compatible package:

--- 8< ---
if ( [ -f /var/atlas-probe/etc/probe_key ] && ! cmp -s 
/var/atlas-probe/etc/probe_key /etc/ripe-atlas/probe_key 1>/dev/null 2>&1 ); 
then
  install -D -p -m 0600 -o ripe-atlas -g ripe-atlas 
/var/atlas-probe/etc/probe_key /etc/ripe-atlas/probe_key 1>/dev/null 2>&1;
fi

if ( [ -f /var/atlas-probe/etc/probe_key.pub ] && ! cmp -s 
/var/atlas-probe/etc/probe_key.pub /etc/ripe-atlas/probe_key.pub 1>/dev/null 
2>&1 ); then
  install -D -p -m 0644 -o ripe-atlas -g ripe-atlas 
/var/atlas-probe/etc/probe_key.pub /etc/ripe-atlas/probe_key.pub 1>/dev/null 
2>&1;
fi

if ( [ -f /var/atlas-probe/state/mode ] && ! cmp -s /var/atlas-probe/state/mode 
/etc/ripe-atlas/mode 1>/dev/null 2>&1 ); then
  install -D -p -m 0644 -o ripe-atlas -g ripe-atlas /var/atlas-probe/state/mode 
/etc/ripe-atlas/mode 1>/dev/null 2>&1;
fi

if ( [ -f /var/atlas-probe/state/config.txt ] && ! cmp -s 
/var/atlas-probe/state/config.txt /etc/ripe-atlas/config.txt 1>/dev/null 2>&1 
); then
  install -D -p -m 0644 -o ripe-atlas -g ripe-atlas 
/var/atlas-probe/state/config.txt /etc/ripe-atlas/config.txt 1>/dev/null 2>&1;
fi

if ( [ -f /etc/ripe-atlas/probe_key ] &&
     [ -f /etc/ripe-atlas/probe_key.pub ] &&
     [ -f /etc/ripe-atlas/mode ] &&
     [ -d /var/atlas-probe ] ); then
        # NOTE: /etc/ripe-atlas/config.txt may not exist
        # if /var/atlas-probe/state/config.txt did not either
        rm -rf /var/atlas-probe
fi
--- 8< ---

I hope that I didn't make any mistakes when resolving the macros from the
spec file manually for this e-mail. In general, it's copying the old files
to the new FHS-conforming place and then removing the old /var/atlas-probe
tree.


Regards,
  Robert
-----
To unsubscribe from this mailing list or change your subscription options, 
please visit: https://mailman.ripe.net/mailman3/lists/ripe-atlas.ripe.net/
As we have migrated to Mailman 3, you will need to create an account with the 
email matching your subscription before you can change your settings. 
More details at: https://www.ripe.net/membership/mail/mailman-3-migration/

Reply via email to