<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi lukas<br>
</p>
<br>
<div class="moz-cite-prefix">On Friday, February 09, 2018 05:20 AM, Lukas Schwaighofer wrote:
</div>
<br>
<blockquote type="cite" cite="mid:20180208222007.2dc77167@localhost">
<pre wrap="">Because that is what we are doing with the logic of your postinst script</pre>
</blockquote>
<blockquote type="cite" cite="mid:20180208222007.2dc77167@localhost">
<pre wrap="">New samples in updated versions ofthe inetsim package will <b class="moz-txt-star"><span class="moz-txt-tag">*</span>not<span class="moz-txt-tag">*</span></b> be automatically installed 

</pre>
</blockquote>
I added the <br>
if [ "$1" = upgrade ]; then<br>
    cp -a -u /usr/share/inetsim/data/* /var/lib/inetsim/ 2> /dev/null<br>
So it will be copied to the right place now.
<blockquote type="cite" cite="mid:20180208222007.2dc77167@localhost">
<pre wrap="">(the binary is already loaded into memory and won't notice that the underlying file
changes).
</pre>
</blockquote>
Sorry, i don't know much about the Perl language,<br>
some said Perl will only read the source file once, and <br>
won't read again. But some also said, the source file <br>
can be re-load if there are some certain code[1]<br>
I found there is "eval" in the code, but i know nothing about Perl<br>
Since we don't know if the next version will replace any code<br>
I think it is better to stop the Perl script.<br>
And also, the script maybe using  sample files as a simulation, <br>
so it is not good to replace the sample while running. <br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://stackoverflow.com/a/3619045">https://stackoverflow.com/a/3619045</a><br>
<br>
Regards,<br>
GengYu Rao<br>
<br>
</body>
</html>