wip, copy server delete old name

This commit is contained in:
2022-04-01 17:52:27 +02:00
parent 5913864cbb
commit 8b1851e652
3 changed files with 41 additions and 18 deletions

View File

@ -670,3 +670,15 @@ int deleteFile(char *mess, char *fname, char *errorPrefix) {
}
return OK;
}
int deleteOldServers(char *mess, char *newServerName, char *errorPrefix) {
LOG(logINFOBLUE, ("newserver name:%s\n", newServerName));
// if it exists
if (access(newServerName, F_OK) == 0) {
LOG(logINFO,
("\tOld server does exist: %s (%s)\n", newServerName, errorPrefix));
}
exit(-1);
return OK;
}