You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.
The following code is copied from "traffic_ops/install/bin/postinstall":
# write whole config to temp file
my $tmpfile = File::Temp->new();
print $tmpfile $dumper->Dump();
close $tmpfile;
# rename current config file to something unique so it's not lost
my $backup_num = 0;
my $backup_name;
do {
$backup_num++;
$backup_name = "$cdn_conf.backup$backup_num";
} while ( -e $backup_name );
rename( $cdn_conf, $backup_name ) or die("rename(): $!");
The rename() will fail if the directory "/tmp/" and the directory "traffic_ops/install/bin/" are not in the same disk partition.
The same issue will be found in the script "traffic_ops/install/bin/generateCert"
The text was updated successfully, but these errors were encountered:
kailuocisco
changed the title
traffic_ops postinstall issue
TO: traffic_ops postinstall issue
May 6, 2016
The following code is copied from "traffic_ops/install/bin/postinstall":
The rename() will fail if the directory "/tmp/" and the directory "traffic_ops/install/bin/" are not in the same disk partition.
The same issue will be found in the script "traffic_ops/install/bin/generateCert"
The text was updated successfully, but these errors were encountered: