delete soft links in old pac-domain

This commit is contained in:
Peter Hormanns 2012-04-07 18:07:17 +00:00
parent 7f847dc13b
commit 76ea5d21b0

View File

@ -293,7 +293,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
processor.appendProcessor(
new ShellProcessor("shopt -s dotglob && ls " + pacDir + "/" + sourceDirs[idx] + " >/dev/null 2>&1" +
" && mv " + pacDir + "/" + sourceDirs[idx] + "/* " + domDir + "/" + targetDirs[idx] + "/ " +
" && rmdir " + pacDir + "/" + sourceDirs[idx] +
" && ( rmdir " + pacDir + "/" + sourceDirs[idx] + " || rm " + pacDir + "/" + sourceDirs[idx] + " ) " +
" || echo 'directory " + pacDir + "/" + sourceDirs[idx] + " not found'"));
}
return processor;