opsi-package-manager options

Benutzeravatar
SisterOfMercy
Beiträge: 778
Registriert: 22 Jun 2012, 19:18

opsi-package-manager options

Beitragvon SisterOfMercy » 14 Jun 2017, 19:14

Code: Alles auswählen

# opsi-package-manager --help
Options:
  -d, --depots       <depots>             comma separated list of depot ids to process
                                             all = all known depots


Would it be possible to make aliases instead of the 'all' for all known depots.
For instance: "opsi-package-manager -i %package% -d test" would send it to the test depotserver. -d prod would send it to a few depots you have configured.

Why? -d all sends it to all known depots, even if a few of those depots use opsi-product-updater to pull all changes.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!

Benutzeravatar
SisterOfMercy
Beiträge: 778
Registriert: 22 Jun 2012, 19:18

Re: opsi-package-manager options

Beitragvon SisterOfMercy » 21 Jun 2017, 15:37

Hmm, this doesn't seem to be that necessary, because I can of course make a really simple script.

Code: Alles auswählen

#!/bin/sh
opsi-makeproductfile ; opsi-package-manager -v -i "$1" -d list-of-push-depots ; opsi-package-manager -v -i "$1"
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!


Zurück zu „Comments, suggestions, wish list“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast