#
# Credits: (see the CREDITS file)
#
-# Copyright (C) 1999-2011 Michael Rash (mbr@cipherdyne.org)
+# Copyright (C) 1999-2012 Michael Rash (mbr@cipherdyne.org)
#
# License (GNU Public License):
#
### set LC_ALL env variable
$ENV{'LC_ALL'} = $locale unless $no_locale;
+### make a copy of the original psad.conf file and restore at the end
+copy $psad_conf_file, "${psad_conf_file}.orig" or die "[*] Could not ",
+ "copy $psad_conf_file -> $psad_conf_file.orig";
+
$install_root = getcwd() . '/test/psad-install' if $install_test_dir;
### import paths from default psad.conf
print F for @installation_lines;
close F;
+### restore the original psad.conf file (this is just the local one in the
+### sources directory).
+if (-e "${psad_conf_file}.orig") {
+ copy "${psad_conf_file}.orig", $psad_conf_file or die "[*] Could not ",
+ "copy $psad_conf_file.orig -> $psad_conf_file";
+}
+
exit 0;
#================= end main =================
&logr("\n[+] To start psad, run ${USRSBIN_DIR}/psad\"\n");
}
}
+
return;
}