-Webmin Version 1.480
+Webmin Version 1.485
--------------------
Webmin is a web-based interface for system administration for Unix.
Using any browser that supports tables and forms, you can setup user
chop($pwd = `pwd`);
# Parse command-line options
-if ($ARGV[0] eq "--dir") {
- shift(@ARGV);
- $forcedir = shift(@ARGV);
+while(@ARGV) {
+ if ($ARGV[0] eq "--dir") {
+ shift(@ARGV);
+ $forcedir = shift(@ARGV);
+ }
+ elsif ($ARGV[0] eq "--sign") {
+ shift(@ARGV);
+ $createsig = 1;
+ }
+ else {
+ last;
+ }
}
$file = shift(@ARGV);
system("gzip -c $1 >$file");
unlink("$1");
}
+if ($createsig) {
+ system("rm -f $file-sig.asc");
+ system("gpg --armor --output $file-sig.asc --detach-sig $file");
+ }
# read_file(file, &assoc, [&order], [lowercase])
# Fill an associative array with name=value pairs from a file