coecms / mosrs-setup

Apache License 2.0
0 stars 1 forks source link

Allow setup without mosrs for just access-svn users #6

Open ScottWales opened 3 years ago

HoWol76 commented 3 years ago

How should this work?

HoWol76 commented 3 years ago

Either way:

setup.main ->
    setup.setup_mosrs_account ->
        auth.check_or_update 
ScottWales commented 3 years ago

It's meant to be run interactively anyway, as users will need to enter passwords. I'd say asking the user is the way to go:

$ mosrs-setup
Do you have an existing MOSRS account on code.metoffice.gov.uk? [Yn]

If 'y' follow the existing path

If 'n':

If you need to access new versions of the UM please send a request to 'cws_help@nci.org.au' saying that you'd like a MOSRS account

Once you have an account run this script again

Either way set up gpg

HoWol76 commented 3 years ago

I've created a possible solution in no_metoffice branch. Does this look suitable?

ScottWales commented 3 years ago

Looks good to me - to check that it's working properly, pip install --user -e . on accessdev, kill your gpg-agent service and remove the setup in ~/.bash_profile