IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43105


Ignore:
Timestamp:
Sep 22, 2026, 3:27:37 PM (41 hours ago)
Author:
eugene
Message:

need to check if the file eixsts (regular file) or is a link before trying to unlink and remake symlink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/scripts/pstamp_save_server_status.pl

    r43073 r43105  
    8585
    8686if ($updatelink) {
    87     if (-e $status_file) {
    88         unlink $status_file or die "failed to unlink existing status file $status_file\n";
     87    # print "checking on $status_file\n";
     88    if (-e $status_file || -l $status_file) {
     89        # print "trying to unlink $status_file\n";
     90        unlink $status_file or die "failed to unlink existing status file $status_file: $!\n";
    8991    }
    9092
    91     symlink $file, $status_file or die "failed to update staus file link $status_file";
     93    symlink $file, $status_file or die "failed to update staus file link $status_file: $!";
    9294}
    9395
Note: See TracChangeset for help on using the changeset viewer.