-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi,
I have a feature request for your script.
For mirroring SLES repos, you have to give a token with each download URL/file.
https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product/?<token>
You could generate your own token, if you paste a valid "Registration Code" from SuSE Customer Center
https://scc.suse.com/subscriptions
in this command line:
curl -H "Authorization: Token token=YourRegistrationCode" https://scc.suse.com/connect/subscriptions/products | tr "," "\n" | grep -i "url" | grep -i "SLE-SERVER"
Output example:
https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product/?lWDDA38y7a1zHcZrMj2aTSNun-Su4vB7Q6E1fe2JG4BYyonwRpTRjiqTXFtYuXMuZpsLBDfDbVbHki5waK1vBF0bfZAhGkd_3SiR_0s3XuOYqIqhwedet5ZiUx9NiULiF6X6RzF6dLB9
https://updates.suse.com/SUSE/Products/SLE-SERVER/12-SP1/x86_64/product/?a1U84xkEgkn2sy08EZm8lJdZ6N6bTWpyWT_ASOHCSdAfHg34saaSeICJV_CJbOLHVEfpZ07iRiIJpRIzYSv-T-1qMIUX8qMQ4bTjB5_ggFtI209CYrWGQOpSsCkT_vFXVqpNeIDmEgGA9b1ikQ
Just to avoid misunderstandings:
For EACH file to download, you have to add the ?<token> to the URL.
So, it would be very nice, if you could add a config option "auth_token", where the token could be stored for each repo (every repo has its own token).
If this option is set, and if repo is a SuSE SLES repo, each file/download URL should expanded with
?$auth_token string
Thanks and regards.