/dev/null || true"; } // Clean up downloaded file from server /tmp if (isSafeTmpPath($serverTmpPath)) { $commands[] = "rm -f {$serverTmpPath} 2>/dev/null || true"; } // Clean up script from server if (isSafeTmpPath($scriptPath)) { $commands[] = "rm -f {$scriptPath} 2>/dev/null || true"; } // Clean up files from database container if (filled($container)) { if (isSafeTmpPath($containerTmpPath)) { $commands[] = "docker exec {$container} rm -f {$containerTmpPath} 2>/dev/null || true"; } if (isSafeTmpPath($scriptPath)) { $commands[] = "docker exec {$container} rm -f {$scriptPath} 2>/dev/null || true"; } } instant_remote_process($commands, Server::find($serverId), throwError: false); } } }