Hi Rainer,<br>thanks a lot man. You were absolutely right. It is working right now. I create an imageresize.xml in the packages folder with that lines but I didnt know I should modify the packages.xml . <br>So, the first file is not needed??<br>
<br>Thanks a lot<br><br><div class="gmail_quote">2008/5/20 Rainer Meier <<a href="mailto:r.meier@wpkg.org">r.meier@wpkg.org</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jose,<div class="Ih2E3d"><br>
<br>
Jose Cortijo wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But before I tried to run it in my own computer from cmd.<br>
I get an error the wpkg database is empty It should be empty as far I didnt install any softwarre yet.<br>
I create the variable SOFTWARE with the value path to software folder in the server and run manually the script.<br>
<br>
coudl you give me any suggestion??<br>
</blockquote>
<br></div>
Sure, let's try to sort it out.<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Successfully loaded XML file: \\DELCHNPEK-FS002\WPKG-1.0.2\profiles.xml<br></div><div class="Ih2E3d">
Reading XML file: //DELCHNPEK-FS002/WPKG-1.0.2/profiles/default.xml<br>
</div></blockquote>
<br>
So two profile definition files have been read. Probably profiles.xml is just the sample one included. You might remove it.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Successfully loaded XML file: \\DELCHNPEK-FS002\WPKG-1.0.2\hosts.xml<br>
</blockquote>
<br></div>
OK, it seems to use host.xml. No host definitions stored within the hosts/ subdirectory.<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Successfully loaded XML file: \\DELCHNPEK-FS002\WPKG-1.0.2\packages.xml<br></div><div class="Ih2E3d">
Reading XML file: //DELCHNPEK-FS002/WPKG-1.0.2/packages/imageresize.xml<br>
</div></blockquote>
<br>
Good, here it read pacakges.xml (probably just the sample file included). You might remove it if you don't need the packages defined there. Reading "imageresize.xml" seems to be fine too.<div class="Ih2E3d">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Profiles applying to the current host:<br>
default<br>
</blockquote>
<br></div>
OK; the profile assigned (look at hosts.xml) ist "default".<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hosts file contains 1 hosts:<br>
DELCHNPEK-WIT01<br>
</blockquote>
<br></div>
Just one host? Hmm, you might consider to use a regular expression for productive use. Something like ".+" will match all hosts.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Settings file contains 0 packages:<br>
</blockquote>
<br></div>
This is correct - your local wpkg.xml has not been written yet.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Packages file contains 4 packages:<br>
wpkg1<br>
wpkg2<br>
wpkg3<br>
time<br>
</blockquote>
<br></div>
Looks a bit like the default list of packages. And here the problem seems to be actually. The default "packages.xml" includes exactly these 4 sample packages. It seems that either your "imageresize.xml" does not contain any package - or you just copied an entry and forgot to change the ID to "imageresize". Your package definition within imageresize.xml should looks something like:<br>
<br>
<packages><br>
<package<br>
id="imageresize"<br>
name="Image Resize"<br>
revision="1"<br>
reboot="false"<br>
priority="100"><br>
<br>
...<br>
<br>
</package><br>
</packages><div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Profile file contains 4 profiles:<br>
default<br>
custom<br>
administration<br>
other<br>
</blockquote>
<br></div>
Correct - and as seen above "default" is applied to the host.<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Using profile(s):<br>
default<br>
</blockquote>
<br>
Seems to be correct most probably.<div class="Ih2E3d"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Adding package with ID 'imageresize' to profile packages.<br>
Profile inconsitency: Package with ID 'imageresize' is listed in profile but doe<br>
s not exist within the package database or the local settings file. Please cont<br>
act your system administrator!<br>
</blockquote>
<br></div>
As named above - WPKG did not find any package definition with id="imageresize" in its header. Please verify your imageresize.xml definition file.<br>
<br>
<br>
<br>
Hope this helps and gives you some more background about how WPKG works.<br>
<br>
br,<br><font color="#888888">
Rainer<br>
</font></blockquote></div><br>