Actions
Feature #7330
closed[SSO] Convert arvados-sso-server-upgrade.sh to fpm after-install/before-remove scripts
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SSO
Target version:
Story points:
2.0
Description
The after-install script should, in the usual case, perform all the same actions that arvados-sso-server-upgrade.sh currently performs. However, there are some expected implementation differences:
- Be prepared to be called with dpkg's calling arguments or rpm's calling arguments. If some actions don't make sense in some calling scenarios, make sure they're skipped.
- Instead of introspecting the system to determine whether we're on Debian or Red Hat, use the calling arguments so we get that information directly from the packaging system, which should be more reliable.
- Instead of copying
/etc/arvados/sso/*.yml
to/var/www/arvados-sso/current/config
, we should make symlinks in/var
to files in/etc
, so the copies don't get out of sync with the canonical versions. If there's a way to do this directly with fpm, feel free to do that, since it will probably be more reliable. But if nothing else, you can make the symlinks in the after-install script, and add a before-remove script to remove them when the last version of the package is being removed (so they don't interfere with removing all of/var/www/arvados-sso
). - Update our install guide to remove references to running
arvados-sso-server-upgrade.sh
.
Actions