opsi-makeproductfile

Antworten
mocanjl
Beiträge: 4
Registriert: 27 Jul 2010, 01:39

opsi-makeproductfile

Beitrag von mocanjl »

Just trying to get my own opsi made and every time i try to use the opsi-makeproductfile command I get this.

Any idea?
Thanks


error: Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: '/etc/opsi/modules'
critical: Traceback:
critical: line 238 in '<module>' in file '/usr/bin/opsi-makeproductfile'
critical: line 138 in 'main' in file '/usr/bin/opsi-makeproductfile'
critical: line 752 in '__init__' in file '/var/lib/python-support/python2.5/OPSI/Product.py'
critical: ==>>> [Errno 2] No such file or directory: '/home/opsiproducts/OPSI/control'
ERROR: [Errno 2] No such file or directory: '/home/opsiproducts/OPSI/control'
bpt01opsi:/home/opsiproducts# opsi-makeproductfile -s
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1924
Registriert: 29 Mai 2008, 15:14

Re: opsi-makeproductfile

Beitrag von j.schneider »

Did you create a new package source using opsi-newprod?
If not, do it, if yes change to the directory created by opsi-newprod and run opsi-makeproductfile again.
mocanjl
Beiträge: 4
Registriert: 27 Jul 2010, 01:39

Re: opsi-makeproductfile

Beitrag von mocanjl »

yes i used the command opsi-newprod and I'm in the directory that the product folder was made in. Still get the error. I make the product then go though the interface to do it. It makes the folder then i do the opsi-makeproductfile command again. Is there any other thing I have to type other then opsi-makeproductfile?
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1924
Registriert: 29 Mai 2008, 15:14

Re: opsi-makeproductfile

Beitrag von j.schneider »

Ok, once again...
Please create the product source directory with opsi-newprod.
The CHANGE INTO the newly created directory (cd <directory>)
Run the opsi-makeproductfile command.
Antworten