Commit 5c8b558e authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Remove ntp.drift file before creating new images.

parent fc9094fd
......@@ -15,6 +15,7 @@ my $RUNDIR = "/var/run";
my $HISTORY = "/root/.history";
my $MAILFILE = "/var/mail/root";
my $LEASES = "/var/db/dhclient.leases";
my $NTPDRIFT = "/etc/ntp/drift";
#
# Load the OS independent support library. It will load the OS dependent
......@@ -113,6 +114,12 @@ if (-f $MAILFILE) {
die("Could not unlink $MAILFILE: $!");
}
print "Removing $NTPDRIFT ...\n";
if (-f $NTPDRIFT) {
unlink($NTPDRIFT) or
die("Could not unlink $NTPDRIFT: $!");
}
print "Cleaing .pid files ...\n";
system("rm -rf $RUNDIR/*.pid");
......
......@@ -14,6 +14,7 @@ my $LOGDIR = "/var/log";
my $RUNDIR = "/var/run";
my $HISTORY = "/.bash_history";
my $MAILFILE = "/var/spool/mail/root";
my $NTPDRIFT = "/etc/ntp/drift";
#
# Load the OS independent support library. It will load the OS dependent
......@@ -112,6 +113,12 @@ if (-f $MAILFILE) {
die("Could not unlink $MAILFILE: $!");
}
print "Removing $NTPDRIFT ...\n";
if (-f $NTPDRIFT) {
unlink($NTPDRIFT) or
die("Could not unlink $NTPDRIFT: $!");
}
print "Cleaing .pid files ...\n";
system("rm -rf $RUNDIR/*.pid");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment